Issue 127: NO_PRECOMPILED_HEADERS and os x 10.5
Status:  Fixed
Owner: ----
Closed:  Aug 2011
Reported by nantistr...@gmail.com, Jul 9, 2011
I follow the comment in  issue 125  to compile on os x 10.5
It seem that the option NO_PRECOMPILED_HEADERS don't work for me. It fails with the error :
g++ -o Test -framework Cocoa -m32 @all_objs
i686-apple-darwin9-g++-4.0.1: @all_objs: No such file or directory

configuration :
os x 10.5
g++ version : 4.0.1
latest svn hxcpp
haxe 2.07

test class :
class Test {
    static function main() {
        trace("Hello World !");
    }
}
command : haxe -cpp cpp -main Test

Jul 11, 2011
Project Member #1 gameh...@gmail.com
Hi
You can use:
<echo value="----- NO_PRECOMPILED_HEADERS----- "/>
before your:
<set name="NO_PRECOMPILED_HEADERS" value="1"/>

to debug whether your code is getting called.

You can also pass it in from the command-line:

 -D NO_PRECOMPILED_HEADERS

Jul 11, 2011
#2 nantistr...@gmail.com
Hi,
Maybe I missed something, My .xhcpp_config is read. I also I try to pass it from the command-line but it failed.
I've posted the terminal output if you want to see.
TestLog.txt
12.8 KB   View   Download
Jul 13, 2011
Project Member #3 gameh...@gmail.com
Sorry - I actually got a bit confused about this one - it is not "precompiled headers" at all.
I have added a new switch, "GCC_OLD", set this to 1 to disable the "fromfile" command.
Jul 14, 2011
#4 nantistr...@gmail.com
It work for me.
Tank's a lot for all the nice work you've done.
Aug 10, 2011
Project Member #5 gameh...@gmail.com
excellent.
Status: Fixed