I'm having some trouble getting the PCH build to work on an x64 Fedora 14 system (gcc 4.4.5). The non-PCH build works fine, but I'm starting to see several problems with later commits so I want to try to get the PCH system working.
Here's my error:
[ 11%] Generating sharedPCH.h
[ 11%] [ 11%] Built target worldserver_pch_dephelp
Generating sharedPCH.h.gch/shared_Release.gch
Scanning dependencies of target pch_Generate_collision
[ 11%] Generating collisionPCH.h
[ 11%] Generating collisionPCH.h.gch/collision_Release.gch
Linking CXX static library libgame_pch_dephelp.a
[ 11%] Built target game_pch_dephelp
Scanning dependencies of target pch_Generate_authserver
[ 11%] Generating authPCH.h
[ 11%] Generating authPCH.h.gch/authserver_Release.gch
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [src/server/collision/collisionPCH.h.gch/collision_Release.gch] Error 1
make[1]: *** [src/server/collision/CMakeFiles/pch_Generate_collision.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [src/server/shared/sharedPCH.h.gch/shared_Release.gch] Error 1
make[1]: *** [src/server/shared/CMakeFiles/pch_Generate_shared.dir/all] Error 2
/usr/lib/gcc/x86_64-redhat-linux/4.4.5/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status
make[2]: *** [src/server/authserver/authPCH.h.gch/authserver_Release.gch] Error 1
make[1]: *** [src/server/authserver/CMakeFiles/pch_Generate_authserver.dir/all] Error 2
Linking CXX static library libscripts_pch_dephelp.a
[ 11%] Built target scripts_pch_dephelp
make: *** [all] Error 2
Any suggestions? Thanks
PS: Just reread this and I don't want the Devs to take exception. I appreciate all work they've done, and don't expect the commits to work on every compile. I'm even getting better at fixing the issues myself so the next step for me is figuring out why the PCH stuff doesn't work.