|
From: | Hungwin Chen |
Subject: | Re: c++ header inclusion |
Date: | Sun, 01 Sep 2013 13:31:12 +0200 |
----- Original Message -----
From: pinskia@gmail.com
Sent: 09/01/13 06:09 PM
To: Hungwin Chen
Subject: Re: c++ header inclusion
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 PinskiThanksmake messages=yesThis 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.oIn file included from <command-line>:0:0:./Example.pch:12:21: fatal error: algorithm: No such file or directorycompilation terminated.make[3]: *** [obj/Example.obj/main.m.o] Error 1make[2]: *** [internal-app-run-compile-submake] Error 2make[1]: *** [Example.all.app.variables] Error 2make: *** [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/algorithm4.4.7/algorithm 4.6.4/algorithm 4.7.3/algorithm v1/algorithm4.4/algorithm 4.6/algorithm 4.7/algorithm_______________________________________________
Discuss-gnustep mailing list
Discuss-gnustep@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnustep
[Prev in Thread] | Current Thread | [Next in Thread] |