hxcpp build issues

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

hxcpp build issues

Tony Polinelli
Hi Hugh,

We're having a little trouble compiling. I get a build issue:


D:\DEVELOPMENT\testing\hxcpp>haxe -cp src -cpp out -main Test
haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
No OSTYPE - assuming windows
cl.exe -nologo -O2 -MT -DHX_WINDOWS -GR -Zi -c -EHsc -IC:\Program Files\Motion-T
win\haxe\lib\hxcpp\1,0//include -D_CRT_SECURE_NO_DEPRECATE -wd4996 -Iinclude ./s
rc/Test.cpp -Foobj/Release/src/Test.o
Test.cpp
./src/Test.cpp : fatal error C1033: cannot open program database ''
Called from <null> line 1
Called from BuildTool.hx line 607
Called from BuildTool.hx line 292
Called from BuildTool.hx line 315
Called from BuildTool.hx line 379
Called from BuildTool.hx line 106
Uncaught exception - Error : 2 - build cancelled
Error : Build failed

D:\DEVELOPMENT\testing\hxcpp>pause;
Press any key to continue . . .


I am using windows 7 - I have set cl to always run in administrator mode. Tarwin has an issue compiling too on Windows Vista, it cant include the windows.h - this is found in Windows Sdks\includes\ which is set as an evironment var in INCLUDE and LIB and it PATH, but we still cant get it to find the file.

Any ideas?

thanks

--
Tony Polinelli
http://touchmypixel.com

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: hxcpp build issues

gershon
Great work first of all,  though i also got build issues, tried this simple:

class Test {
    static function main() {
        trace("Hello World !");
    }
}

with:
OSTYPE=linux haxe -cpp out -main Test

on first run:

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
gcc -c -fvisibility=hidden -O2 -m64 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/Test.cpp -oobj/linux/src/Test.o
In file included from ./src/Test.cpp:1:
/home/gershon/haxelib/hxcpp/1,0/include/hxObject.h: In constructor ‘String::String(const wchar_t*)’:
/home/gershon/haxelib/hxcpp/1,0/include/hxObject.h:300: error: ‘wcslen’ was not declared in this scope
/home/gershon/haxelib/hxcpp/1,0/include/hxObject.h: In member function ‘int String::compare(const String&) const’:
/home/gershon/haxelib/hxcpp/1,0/include/hxObject.h:355: error: ‘wcscmp’ was not declared in this scope
./src/Test.cpp: In member function ‘virtual Dynamic Test_obj::__Field(const String&)’:
./src/Test.cpp:51: error: ‘memcmp’ was not declared in this scope
Called from <null> line 1
Called from BuildTool.hx line 607
Called from BuildTool.hx line 292
Called from a C function
Called from BuildTool.hx line 315
Called from BuildTool.hx line 379
Called from BuildTool.hx line 106
Uncaught exception - Error : 256 - build cancelled

after including <wchar.h> and <string.h> in hxObject.h:

haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
mkdir obj
mkdir obj/linux
mkdir obj/linux/src
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/Test.cpp -oobj/linux/src/Test.o
mkdir obj/linux/src/haxe
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/haxe/Log.cpp -oobj/linux/src/haxe/Log.o
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/Std.cpp -oobj/linux/src/Std.o
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/__boot__.cpp -oobj/linux/src/__boot__.o
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/__resources__.cpp -oobj/linux/src/__resources__.o
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -Iinclude -frtti ./src/__main__.cpp -oobj/linux/src/__main__.o
mkdir obj/linux/runtime
mkdir obj/linux/runtime/src
gcc -c -fvisibility=hidden -O2 -DHX_LINUX -I/home/gershon/haxelib/hxcpp/1,0/include -I/usr/include -DBUILDING_HXCPP_DLL -D_CRT_SECURE_NO_DEPRECATE -DALL_INTERIOR_POINTERS -DGC_NOT_DLL -DNO_THREAD_REDIRECT -DGC_THREADS -I/home/gershon/haxelib/hxcpp/1,0//runtime/thirdparty/gc-7.1/include -I/home/gershon/haxelib/hxcpp/1,0//runtime/thirdparty/gc-7.1/include/private -I/home/gershon/haxelib/hxcpp/1,0//runtime/thirdparty/gc-7.1/libatomic_ops-1.2/src -frtti /home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp -oobj/linux/runtime/src/hxObject.o
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:17: error: ‘uint64_t’ does not name a type
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp: In member function ‘char* String::__CStr() const’:
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:1134: warning: deprecated conversion from string constant to ‘char*’
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp: In function ‘int __int__(double)’:
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:1480: error: ‘__int64’ was not declared in this scope
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:1480: error: expected ‘;’ before ‘big_int’
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:1481: error: ‘big_int’ was not declared in this scope
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp: In function ‘Array<String> __get_args()’:
/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:1793: error: ‘getpid’ was not declared in this scope
Called from <null> line 1
Called from BuildTool.hx line 607
Called from BuildTool.hx line 292
Called from a C function
Called from BuildTool.hx line 315
Called from BuildTool.hx line 379
Called from BuildTool.hx line 106
Uncaught exception - Error : 256 - build cancelled

tried adding "-m64" to BuildCommon.xml, with no luck, also tried "-march=x86_64" (from /usr/bin/arch), and got:

 "/home/gershon/haxelib/hxcpp/1,0//runtime/src/hxObject.cpp:1: error: bad value (x86_64) for -mtune= switch"

There's a couple more switches for 64bit platforms, like big\little endians an others, but the -m64 usually does it.
Have'nt tried in a 32bit chroot, but will if you need it for testing...

I'm on Linux 2.6.31-3-generic x86_64 GNU/Linux, gcc version 4.4.1 (Ubuntu 4.4.1-1ubuntu1)


--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: hxcpp build issues

Hugh Sanderson-2
In reply to this post by Tony Polinelli
Hi Tony,

You can add flags to the compile options with a custom
".hxcpp_config.xml" file.  On windows, you can create a
file of this name in your $USERPROFILE area, so something like:
C:\Documents and Settings\your_name\.hxcpp_config.xml
(You can also set $HXCPP_CONFIG if you are using a build-server
style environment)

In this file, you can add flags to a compiler (or linker)
or replace the compiler completely.  (Currently, you can't
just change the exe path - bit of an oversight).

The file would look something like this:
<xml>
    <compiler id="MSVC">
       <flag value="-Ic:\Windows Sdks\includes"/>
    </compiler>

   <linker id="exe">
       <flag value="-libpath:c:\Windows Sdks\lib"/>
    </linker>
</xml>

To replace it completely, cut & paste the section from
c:/Program Files/Motion-Twin/haxe/lib/hxcpp/1,0/build-tool/BuildCommon.xml

and add the replace="1" attribute in the compiler tag.
(Or just edit BuildCommon.xml - but then you will lose stuff when
I do an update)

I have not fully documented this yet, but hopefully this may help.

I will probably have a few changes to this system once I
get a bit more feedback.

As for the pdb option - I'm not sure.  Does this help (non ascii  
characters)?
http://msdn.microsoft.com/en-us/library/4ks5fw35.aspx

Otherwise, what VS version are you using on Win 7.
I think you need to run 2005 in "Windows XP" mode, but I'm not sure.

If you can't solve it, I will try to find a windows7 box.


Hugh


> We're having a little trouble compiling. I get a build issue:
> D:\DEVELOPMENT\testing\hxcpp>haxe -cp src -cpp out -main Test
> haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
> No OSTYPE - assuming windows
> cl.exe -nologo -O2 -MT -DHX_WINDOWS -GR -Zi -c -EHsc -IC:\Program
> Files\Motion-T
> win\haxe\lib\hxcpp\1,0//include -D_CRT_SECURE_NO_DEPRECATE -wd4996  
> -Iinclude
> ./s
> rc/Test.cpp -Foobj/Release/src/Test.o
> Test.cpp
> ./src/Test.cpp : fatal error C1033: cannot open program database ''
> Called from <null> line 1
> Called from BuildTool.hx line 607
> Called from BuildTool.hx line 292
> Called from BuildTool.hx line 315
> Called from BuildTool.hx line 379
> Called from BuildTool.hx line 106
> Uncaught exception - Error : 2 - build cancelled
> Error : Build failed
> D:\DEVELOPMENT\testing\hxcpp>pause;
> Press any key to continue . . .
> I am using windows 7 - I have set cl to always run in administrator mode.
> Tarwin has an issue compiling too on Windows Vista, it cant include the
> windows.h - this is found in Windows Sdks\includes\ which is set as an
> evironment var in INCLUDE and LIB and it PATH, but we still cant get it  
> to
> find the file.
> Any ideas?
> thanks

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: hxcpp build issues

Tony Polinelli
Okay thanks that worked. I've got it working on xp via parallels on my mac, so thats a start. I still find it weird that when I install VS C++ Express that it doesnt setup paths, and in this case, having them in the env. vars didnt seem to affect it. I'm not sure if that is your experience with cl.

I think that the issue with windows7 is that it cant write to a file, in my experience with windows 7 thus far, its probably a permissions thing - the system thinks that the file is locked, or thinks that i dont have administrator access... even tho i am the only user.. and an administrator! gah... i'll keep playing to see if i can figure anything out more.

thanks



On Mon, Jul 27, 2009 at 3:07 PM, Hugh Sanderson <[hidden email]> wrote:
Hi Tony,

You can add flags to the compile options with a custom
".hxcpp_config.xml" file.  On windows, you can create a
file of this name in your $USERPROFILE area, so something like:
C:\Documents and Settings\your_name\.hxcpp_config.xml
(You can also set $HXCPP_CONFIG if you are using a build-server
style environment)

In this file, you can add flags to a compiler (or linker)
or replace the compiler completely.  (Currently, you can't
just change the exe path - bit of an oversight).

The file would look something like this:
<xml>
  <compiler id="MSVC">
     <flag value="-Ic:\Windows Sdks\includes"/>
  </compiler>

 <linker id="exe">
     <flag value="-libpath:c:\Windows Sdks\lib"/>
  </linker>
</xml>

To replace it completely, cut & paste the section from
c:/Program Files/Motion-Twin/haxe/lib/hxcpp/1,0/build-tool/BuildCommon.xml

and add the replace="1" attribute in the compiler tag.
(Or just edit BuildCommon.xml - but then you will lose stuff when
I do an update)

I have not fully documented this yet, but hopefully this may help.

I will probably have a few changes to this system once I
get a bit more feedback.

As for the pdb option - I'm not sure.  Does this help (non ascii characters)?
http://msdn.microsoft.com/en-us/library/4ks5fw35.aspx

Otherwise, what VS version are you using on Win 7.
I think you need to run 2005 in "Windows XP" mode, but I'm not sure.

If you can't solve it, I will try to find a windows7 box.


Hugh


We're having a little trouble compiling. I get a build issue:
D:\DEVELOPMENT\testing\hxcpp>haxe -cp src -cpp out -main Test
haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
No OSTYPE - assuming windows
cl.exe -nologo -O2 -MT -DHX_WINDOWS -GR -Zi -c -EHsc -IC:\Program
Files\Motion-T
win\haxe\lib\hxcpp\1,0//include -D_CRT_SECURE_NO_DEPRECATE -wd4996 -Iinclude
./s
rc/Test.cpp -Foobj/Release/src/Test.o
Test.cpp
./src/Test.cpp : fatal error C1033: cannot open program database ''
Called from <null> line 1
Called from BuildTool.hx line 607
Called from BuildTool.hx line 292
Called from BuildTool.hx line 315
Called from BuildTool.hx line 379
Called from BuildTool.hx line 106
Uncaught exception - Error : 2 - build cancelled
Error : Build failed
D:\DEVELOPMENT\testing\hxcpp>pause;
Press any key to continue . . .
I am using windows 7 - I have set cl to always run in administrator mode.
Tarwin has an issue compiling too on Windows Vista, it cant include the
windows.h - this is found in Windows Sdks\includes\ which is set as an
evironment var in INCLUDE and LIB and it PATH, but we still cant get it to
find the file.
Any ideas?
thanks

--
haXe - an open source web programming language
http://haxe.org



--
Tony Polinelli
http://touchmypixel.com

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: hxcpp build issues

Tony Polinelli
It seems that cl.exe needs to be run in Vista SP2 Compatability mode via right clicking on it. (Not XP compatability mode... specifically vista.. ggrrr). So it all works!

thanks for the help

 

On Mon, Jul 27, 2009 at 5:15 PM, Tony Polinelli <[hidden email]> wrote:
Okay thanks that worked. I've got it working on xp via parallels on my mac, so thats a start. I still find it weird that when I install VS C++ Express that it doesnt setup paths, and in this case, having them in the env. vars didnt seem to affect it. I'm not sure if that is your experience with cl.

I think that the issue with windows7 is that it cant write to a file, in my experience with windows 7 thus far, its probably a permissions thing - the system thinks that the file is locked, or thinks that i dont have administrator access... even tho i am the only user.. and an administrator! gah... i'll keep playing to see if i can figure anything out more.

thanks




On Mon, Jul 27, 2009 at 3:07 PM, Hugh Sanderson <[hidden email]> wrote:
Hi Tony,

You can add flags to the compile options with a custom
".hxcpp_config.xml" file.  On windows, you can create a
file of this name in your $USERPROFILE area, so something like:
C:\Documents and Settings\your_name\.hxcpp_config.xml
(You can also set $HXCPP_CONFIG if you are using a build-server
style environment)

In this file, you can add flags to a compiler (or linker)
or replace the compiler completely.  (Currently, you can't
just change the exe path - bit of an oversight).

The file would look something like this:
<xml>
  <compiler id="MSVC">
     <flag value="-Ic:\Windows Sdks\includes"/>
  </compiler>

 <linker id="exe">
     <flag value="-libpath:c:\Windows Sdks\lib"/>
  </linker>
</xml>

To replace it completely, cut & paste the section from
c:/Program Files/Motion-Twin/haxe/lib/hxcpp/1,0/build-tool/BuildCommon.xml

and add the replace="1" attribute in the compiler tag.
(Or just edit BuildCommon.xml - but then you will lose stuff when
I do an update)

I have not fully documented this yet, but hopefully this may help.

I will probably have a few changes to this system once I
get a bit more feedback.

As for the pdb option - I'm not sure.  Does this help (non ascii characters)?
http://msdn.microsoft.com/en-us/library/4ks5fw35.aspx

Otherwise, what VS version are you using on Win 7.
I think you need to run 2005 in "Windows XP" mode, but I'm not sure.

If you can't solve it, I will try to find a windows7 box.


Hugh


We're having a little trouble compiling. I get a build issue:
D:\DEVELOPMENT\testing\hxcpp>haxe -cp src -cpp out -main Test
haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
No OSTYPE - assuming windows
cl.exe -nologo -O2 -MT -DHX_WINDOWS -GR -Zi -c -EHsc -IC:\Program
Files\Motion-T
win\haxe\lib\hxcpp\1,0//include -D_CRT_SECURE_NO_DEPRECATE -wd4996 -Iinclude
./s
rc/Test.cpp -Foobj/Release/src/Test.o
Test.cpp
./src/Test.cpp : fatal error C1033: cannot open program database ''
Called from <null> line 1
Called from BuildTool.hx line 607
Called from BuildTool.hx line 292
Called from BuildTool.hx line 315
Called from BuildTool.hx line 379
Called from BuildTool.hx line 106
Uncaught exception - Error : 2 - build cancelled
Error : Build failed
D:\DEVELOPMENT\testing\hxcpp>pause;
Press any key to continue . . .
I am using windows 7 - I have set cl to always run in administrator mode.
Tarwin has an issue compiling too on Windows Vista, it cant include the
windows.h - this is found in Windows Sdks\includes\ which is set as an
evironment var in INCLUDE and LIB and it PATH, but we still cant get it to
find the file.
Any ideas?
thanks

--
haXe - an open source web programming language
http://haxe.org



--
Tony Polinelli
http://touchmypixel.com



--
Tony Polinelli
http://touchmypixel.com

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: hxcpp build issues

Tony Polinelli

After compiling with neash and nme with a very simple class (just creats a circle) i cant run the exe. i get the error:


Z:\DEVELOPMENT\testing\simple neash\out>Main.exe
Error : Could not load module nme@nme_filter_image__2

Z:\DEVELOPMENT\testing\simple neash\out>pause
Press any key to continue . . .


cant load a module?







On Mon, Jul 27, 2009 at 5:37 PM, Tony Polinelli <[hidden email]> wrote:
It seems that cl.exe needs to be run in Vista SP2 Compatability mode via right clicking on it. (Not XP compatability mode... specifically vista.. ggrrr). So it all works!

thanks for the help


 

On Mon, Jul 27, 2009 at 5:15 PM, Tony Polinelli <[hidden email]> wrote:
Okay thanks that worked. I've got it working on xp via parallels on my mac, so thats a start. I still find it weird that when I install VS C++ Express that it doesnt setup paths, and in this case, having them in the env. vars didnt seem to affect it. I'm not sure if that is your experience with cl.

I think that the issue with windows7 is that it cant write to a file, in my experience with windows 7 thus far, its probably a permissions thing - the system thinks that the file is locked, or thinks that i dont have administrator access... even tho i am the only user.. and an administrator! gah... i'll keep playing to see if i can figure anything out more.

thanks




On Mon, Jul 27, 2009 at 3:07 PM, Hugh Sanderson <[hidden email]> wrote:
Hi Tony,

You can add flags to the compile options with a custom
".hxcpp_config.xml" file.  On windows, you can create a
file of this name in your $USERPROFILE area, so something like:
C:\Documents and Settings\your_name\.hxcpp_config.xml
(You can also set $HXCPP_CONFIG if you are using a build-server
style environment)

In this file, you can add flags to a compiler (or linker)
or replace the compiler completely.  (Currently, you can't
just change the exe path - bit of an oversight).

The file would look something like this:
<xml>
  <compiler id="MSVC">
     <flag value="-Ic:\Windows Sdks\includes"/>
  </compiler>

 <linker id="exe">
     <flag value="-libpath:c:\Windows Sdks\lib"/>
  </linker>
</xml>

To replace it completely, cut & paste the section from
c:/Program Files/Motion-Twin/haxe/lib/hxcpp/1,0/build-tool/BuildCommon.xml

and add the replace="1" attribute in the compiler tag.
(Or just edit BuildCommon.xml - but then you will lose stuff when
I do an update)

I have not fully documented this yet, but hopefully this may help.

I will probably have a few changes to this system once I
get a bit more feedback.

As for the pdb option - I'm not sure.  Does this help (non ascii characters)?
http://msdn.microsoft.com/en-us/library/4ks5fw35.aspx

Otherwise, what VS version are you using on Win 7.
I think you need to run 2005 in "Windows XP" mode, but I'm not sure.

If you can't solve it, I will try to find a windows7 box.


Hugh


We're having a little trouble compiling. I get a build issue:
D:\DEVELOPMENT\testing\hxcpp>haxe -cp src -cpp out -main Test
haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
No OSTYPE - assuming windows
cl.exe -nologo -O2 -MT -DHX_WINDOWS -GR -Zi -c -EHsc -IC:\Program
Files\Motion-T
win\haxe\lib\hxcpp\1,0//include -D_CRT_SECURE_NO_DEPRECATE -wd4996 -Iinclude
./s
rc/Test.cpp -Foobj/Release/src/Test.o
Test.cpp
./src/Test.cpp : fatal error C1033: cannot open program database ''
Called from <null> line 1
Called from BuildTool.hx line 607
Called from BuildTool.hx line 292
Called from BuildTool.hx line 315
Called from BuildTool.hx line 379
Called from BuildTool.hx line 106
Uncaught exception - Error : 2 - build cancelled
Error : Build failed
D:\DEVELOPMENT\testing\hxcpp>pause;
Press any key to continue . . .
I am using windows 7 - I have set cl to always run in administrator mode.
Tarwin has an issue compiling too on Windows Vista, it cant include the
windows.h - this is found in Windows Sdks\includes\ which is set as an
evironment var in INCLUDE and LIB and it PATH, but we still cant get it to
find the file.
Any ideas?
thanks

--
haXe - an open source web programming language
http://haxe.org



--
Tony Polinelli
http://touchmypixel.com



--
Tony Polinelli
http://touchmypixel.com



--
Tony Polinelli
http://touchmypixel.com

--
haXe - an open source web programming language
http://haxe.org
Reply | Threaded
Open this post in threaded view
|

Re: hxcpp build issues

Gamehaxe
Hi,
I'm in the process of updating nme and neash on haxelib.
You could try "installing" these again.

On a related note, if I install neash first, it brings in nme,
but does not setup the haxelib nme path correctly.
To fix this, you can do it explicitly with:
haxelib set nme 1.0

If nme has been upgraded but you still want to use the old ndlls,
you can reverse this with
haxelib set nme 0.9

Hugh

> After compiling with neash and nme with a very simple class (just creats  
> a
> circle) i cant run the exe. i get the error:
>
>
> Z:\DEVELOPMENT\testing\simple neash\out>Main.exe
> Error : Could not load module nme@nme_filter_image__2
>
> Z:\DEVELOPMENT\testing\simple neash\out>pause
> Press any key to continue . . .
>
>
> cant load a module?
>
>
>
>
>
>
>
> On Mon, Jul 27, 2009 at 5:37 PM, Tony Polinelli  
> <[hidden email]>wrote:
>
>> It seems that cl.exe needs to be run in Vista SP2 Compatability mode via
>> right clicking on it. (Not XP compatability mode... specifically vista..
>> ggrrr). So it all works!
>>
>> thanks for the help
>>
>>
>>
>>
>> On Mon, Jul 27, 2009 at 5:15 PM, Tony Polinelli  
>> <[hidden email]>wrote:
>>
>>> Okay thanks that worked. I've got it working on xp via parallels on my
>>> mac, so thats a start. I still find it weird that when I install VS C++
>>> Express that it doesnt setup paths, and in this case, having them in  
>>> the
>>> env. vars didnt seem to affect it. I'm not sure if that is your  
>>> experience
>>> with cl.
>>>
>>> I think that the issue with windows7 is that it cant write to a file,  
>>> in
>>> my experience with windows 7 thus far, its probably a permissions  
>>> thing -
>>> the system thinks that the file is locked, or thinks that i dont have
>>> administrator access... even tho i am the only user.. and an  
>>> administrator!
>>> gah... i'll keep playing to see if i can figure anything out more.
>>>
>>> thanks
>>>
>>>
>>>
>>>
>>> On Mon, Jul 27, 2009 at 3:07 PM, Hugh Sanderson  
>>> <[hidden email]>wrote:
>>>
>>>> Hi Tony,
>>>>
>>>> You can add flags to the compile options with a custom
>>>> ".hxcpp_config.xml" file.  On windows, you can create a
>>>> file of this name in your $USERPROFILE area, so something like:
>>>> C:\Documents and Settings\your_name\.hxcpp_config.xml
>>>> (You can also set $HXCPP_CONFIG if you are using a build-server
>>>> style environment)
>>>>
>>>> In this file, you can add flags to a compiler (or linker)
>>>> or replace the compiler completely.  (Currently, you can't
>>>> just change the exe path - bit of an oversight).
>>>>
>>>> The file would look something like this:
>>>> <xml>
>>>>   <compiler id="MSVC">
>>>>      <flag value="-Ic:\Windows Sdks\includes"/>
>>>>   </compiler>
>>>>
>>>>  <linker id="exe">
>>>>      <flag value="-libpath:c:\Windows Sdks\lib"/>
>>>>   </linker>
>>>> </xml>
>>>>
>>>> To replace it completely, cut & paste the section from
>>>> c:/Program
>>>> Files/Motion-Twin/haxe/lib/hxcpp/1,0/build-tool/BuildCommon.xml
>>>>
>>>> and add the replace="1" attribute in the compiler tag.
>>>> (Or just edit BuildCommon.xml - but then you will lose stuff when
>>>> I do an update)
>>>>
>>>> I have not fully documented this yet, but hopefully this may help.
>>>>
>>>> I will probably have a few changes to this system once I
>>>> get a bit more feedback.
>>>>
>>>> As for the pdb option - I'm not sure.  Does this help (non ascii
>>>> characters)?
>>>> http://msdn.microsoft.com/en-us/library/4ks5fw35.aspx
>>>>
>>>> Otherwise, what VS version are you using on Win 7.
>>>> I think you need to run 2005 in "Windows XP" mode, but I'm not sure.
>>>>
>>>> If you can't solve it, I will try to find a windows7 box.
>>>>
>>>>
>>>> Hugh
>>>>
>>>>
>>>>  We're having a little trouble compiling. I get a build issue:
>>>>> D:\DEVELOPMENT\testing\hxcpp>haxe -cp src -cpp out -main Test
>>>>> haxelib run hxcpp Build.xml haxe -Dcpp -Dhaxe_204 -Dtrue
>>>>> No OSTYPE - assuming windows
>>>>> cl.exe -nologo -O2 -MT -DHX_WINDOWS -GR -Zi -c -EHsc -IC:\Program
>>>>> Files\Motion-T
>>>>> win\haxe\lib\hxcpp\1,0//include -D_CRT_SECURE_NO_DEPRECATE -wd4996
>>>>> -Iinclude
>>>>> ./s
>>>>> rc/Test.cpp -Foobj/Release/src/Test.o
>>>>> Test.cpp
>>>>> ./src/Test.cpp : fatal error C1033: cannot open program database ''
>>>>> Called from <null> line 1
>>>>> Called from BuildTool.hx line 607
>>>>> Called from BuildTool.hx line 292
>>>>> Called from BuildTool.hx line 315
>>>>> Called from BuildTool.hx line 379
>>>>> Called from BuildTool.hx line 106
>>>>> Uncaught exception - Error : 2 - build cancelled
>>>>> Error : Build failed
>>>>> D:\DEVELOPMENT\testing\hxcpp>pause;
>>>>> Press any key to continue . . .
>>>>> I am using windows 7 - I have set cl to always run in administrator
>>>>> mode.
>>>>> Tarwin has an issue compiling too on Windows Vista, it cant include  
>>>>> the
>>>>> windows.h - this is found in Windows Sdks\includes\ which is set as  
>>>>> an
>>>>> evironment var in INCLUDE and LIB and it PATH, but we still cant get  
>>>>> it
>>>>> to
>>>>> find the file.
>>>>> Any ideas?
>>>>> thanks
>>>>>
>>>>
>>>> --
>>>> haXe - an open source web programming language
>>>> http://haxe.org
>>>>
>>>
>>>
>>>
>>> --
>>> Tony Polinelli
>>> http://touchmypixel.com
>>>
>>
>>
>>
>> --
>> Tony Polinelli
>> http://touchmypixel.com
>>
>
>
>



--
haXe - an open source web programming language
http://haxe.org