How if those headers are included in the precompiled header (pch) file? Any additional directives should be included? Or is there any special name for pch file for GNUstep application?
Thanks ----- Original Message ----- From: [email protected] Sent: 09/01/13 06:09 PM To: Hungwin Chen Subject: Re: c++ header inclusion On Sep 1, 2013, at 3:02 AM, "Hungwin Chen" < [email protected] > wrote: When compiling gnustep program, following error is thrown. This looks like c++ header is not found, but checking /usr/include/c++/<version>/algorithm shows that algorithm headers are there. What modification is required to include c++ header to GNUmakefile or how can this be fixed? Use .mm instead of .m. Since you are using objc++ rather than objc. Thanks, Andrew Pinski Thanks make messages=yes This is gnustep-make 2.6.2. Type 'make print-gnustep-make-help' for help. Making all for app Example... gcc main.m -c \ -MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -pthread -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fgnu-runtime -include Example.pch -fconstant-string-class=NSConstantString -I../../Library/Core -I. -I/home/hchen/GNUstep/Library/Headers -I/usr/local/include/GNUstep -I/usr/include/GNUstep \ -o obj/Example.obj/main.m.o In file included from <command-line>:0:0: ./Example.pch:12:21: fatal error: algorithm: No such file or directory compilation terminated. make[3]: *** [obj/Example.obj/main.m.o] Error 1 make[2]: *** [internal-app-run-compile-submake] Error 2 make[1]: *** [Example.all.app.variables] Error 2 make: *** [internal-all] Error 2 $ls 4.4/algorithm 4.4.7/algorithm 4.6/algorithm 4.6.4/algorithm 4.7/algorithm 4.7.3/algorithm v1/algorithm 4.4.7/algorithm 4.6.4/algorithm 4.7.3/algorithm v1/algorithm 4.4/algorithm 4.6/algorithm 4.7/algorithm _______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
_______________________________________________ Discuss-gnustep mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnustep
