[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [cdt-dev] problem building managed make project with CDT 2.0
|
Sean,
Thanks for the reply. I'll look into the changes you mentioned, but I know I won't be able to get to it anytime soon. In the meantime, do you happen to know if I can use CDT 2.0M9 (which has the spaces) with Eclipse 3.0 GA?
Tim
On Jul 7, 2004, at 1:32 PM, Sean Evoy wrote:
Timothy,
We took the spaces out because people complained that the commands were invalid for the Win32 compilers, and the GCC tools did not seem to care if they were not there. At this point, it looks like we may need to further refine the syntax of the managed build schema to tell the generator when to put a whitespace in.
Now, this is not going to happen for 2.0.1 because it will be too destabilizing. The generator is where the actual stuff gets done, so if you like, you can supply your own makefile generator that is identical to the default with the exception that the target rule has a whitespace again. I am working on the updated Extensibility document this week, so I can fire you off the section of text that describes this new functionality when I get it done. If you are in a hurry, you can add your own generator via the makefileGenerator attribute of the target extension.
Hope this helps,
Sean Evoy
Rational Software - IBM Software Group
Ottawa, Ontario, Canada
<x-tad-smaller>Timothy Perrigo <tperrigo@xxxxxxxxxxxxx></x-tad-smaller><x-tad-smaller> </x-tad-smaller>
<x-tad-smaller>Sent by: cdt-dev-admin@xxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>07/06/2004 07:25 PM</x-tad-smaller>
<x-tad-smaller>Please respond to</x-tad-smaller>
<x-tad-smaller> cdt-dev</x-tad-smaller>
<x-tad-smaller>To</x-tad-smaller>
<x-tad-smaller>cdt-dev@xxxxxxxxxxx</x-tad-smaller>
<x-tad-smaller>cc</x-tad-smaller>
<x-tad-smaller>Subject</x-tad-smaller>
<x-tad-smaller>[cdt-dev] problem building managed make project with CDT 2.0</x-tad-smaller>
<x-tad-smaller>I just installed Eclipse 3.0 and the CDT 2.0 this morning, and I've </x-tad-smaller>
<x-tad-smaller> been unable to build a managed make project which previously built </x-tad-smaller>
<x-tad-smaller> without error using Eclipse 3.0 RC 1 and CDT 2.0 M9. I keep getting an </x-tad-smaller>
<x-tad-smaller> error from the linker due to a missing space between the -o and the </x-tad-smaller>
<x-tad-smaller> artifact name (mo_2, in my case). The exact error is "ld: unknown </x-tad-smaller>
<x-tad-smaller> flag: -omo_2"; because of the missing space, it seems to be treating it</x-tad-smaller>
<x-tad-smaller> as a linker flag, rather than the name of the output file. When I </x-tad-smaller>
<x-tad-smaller> switched back to M9, the space is present in the g++ command line (see </x-tad-smaller>
<x-tad-smaller> below for the command lines from each version). I am using Mac OS X, </x-tad-smaller>
<x-tad-smaller> and I know the CDT is not officially supported for my platform...is</x-tad-smaller>
<x-tad-smaller> this a known issue? Should I file a bug report?</x-tad-smaller>
<x-tad-smaller> Any help would be greatly appreciated.</x-tad-smaller>
<x-tad-smaller> Thanks,</x-tad-smaller>
<x-tad-smaller> Tim Perrigo</x-tad-smaller>
<x-tad-smaller> With Eclipse 3.0 (RC 1), CDT M9 (builds successfully):</x-tad-smaller>
<x-tad-smaller> make -k all</x-tad-smaller>
<x-tad-smaller> Building file: ../src/db_util.cpp</x-tad-smaller>
<x-tad-smaller> g++ -I/Users/tperrigo/workspace/mo_2/include</x-tad-smaller>
<x-tad-smaller> -I/usr/local/include/jwsmtp-1.30 </x-tad-smaller>
<x-tad-smaller> -I/Users/tperrigo/workspace/IntervalSet/include</x-tad-smaller>
<x-tad-smaller> -I/usr/local/include/boost-1_31 -I/usr/local/pgsql/include</x-tad-smaller>
<x-tad-smaller> -I/usr/local/include -O0 -g3 -DDEBUG=true -Wall -c -fmessage-length=0 </x-tad-smaller>
<x-tad-smaller> -Wno-long-double -o src/db_util.o ../src/db_util.cpp</x-tad-smaller>
<x-tad-smaller> Finished building: ../src/db_util.cpp</x-tad-smaller>
<x-tad-smaller> Building target: mo_2</x-tad-smaller>
<x-tad-smaller> g++ -L/usr/local/pgsql/lib -L/usr/local/lib -o mo_2 </x-tad-smaller>
<x-tad-smaller> src/MilesServer.o src/appointment_provider.o src/db_util.o src/email.o</x-tad-smaller>
<x-tad-smaller> src/exceptions.o src/location.o src/main.o src/mo_types.o src/profile.o</x-tad-smaller>
<x-tad-smaller> src/rate_service.o src/request.o src/request_provider.o</x-tad-smaller>
<x-tad-smaller> src/request_view_data.o src/result.o src/shemp.o src/stakeholder.o </x-tad-smaller>
<x-tad-smaller> -lpqxx -lpq -leasysoap -lcrypto -lssl -lexpat -lboost_thread-1_31 </x-tad-smaller>
<x-tad-smaller> -lIntervalSet -lboost_date_time -ljwsmtp</x-tad-smaller>
<x-tad-smaller> Finished building: mo_2</x-tad-smaller>
<x-tad-smaller> Build complete for project mo_2</x-tad-smaller>
<x-tad-smaller> With Eclipse 3.0 (GA), CDT 2.0 (GA) (fails to build):</x-tad-smaller>
<x-tad-smaller> make -k all</x-tad-smaller>
<x-tad-smaller> makefile:15: no file name for `-include'</x-tad-smaller>
<x-tad-smaller> Building file: ../src/db_util.cpp</x-tad-smaller>
<x-tad-smaller> g++ -I/Users/tperrigo/workspace/mo_2/include</x-tad-smaller>
<x-tad-smaller> -I/usr/local/include/jwsmtp-1.30 </x-tad-smaller>
<x-tad-smaller> -I/Users/tperrigo/workspace/IntervalSet/include</x-tad-smaller>
<x-tad-smaller> -I/usr/local/include/boost-1_31 -I/usr/local/pgsql/include</x-tad-smaller>
<x-tad-smaller> -I/usr/local/include -O0 -g3 -DDEBUG=true -Wall -c -fmessage-length=0 </x-tad-smaller>
<x-tad-smaller> -Wno-long-double -o src/db_util.o ../src/db_util.cpp</x-tad-smaller>
<x-tad-smaller> Finished building: ../src/db_util.cpp</x-tad-smaller>
<x-tad-smaller> make: *** [mo_2] Error 1</x-tad-smaller>
<x-tad-smaller> make: Target `all' not remade because of errors.</x-tad-smaller>
<x-tad-smaller> Building target: mo_2</x-tad-smaller>
<x-tad-smaller> g++ -L/usr/local/pgsql/lib -L/usr/local/lib -omo_2 </x-tad-smaller>
<x-tad-smaller> src/MilesServer.o src/appointment_provider.o src/db_util.o src/email.o</x-tad-smaller>
<x-tad-smaller> src/exceptions.o src/location.o src/main.o src/mo_types.o src/profile.o</x-tad-smaller>
<x-tad-smaller> src/rate_service.o src/request.o src/request_provider.o</x-tad-smaller>
<x-tad-smaller> src/request_view_data.o src/result.o src/shemp.o src/stakeholder.o </x-tad-smaller>
<x-tad-smaller> -lpqxx -lpq -leasysoap -lcrypto -lssl -lexpat -lboost_thread-1_31 </x-tad-smaller>
<x-tad-smaller> -lIntervalSet -lboost_date_time -ljwsmtp</x-tad-smaller>
<x-tad-smaller> ld: unknown flag: -omo_2</x-tad-smaller>
<x-tad-smaller> Build complete for project mo_2</x-tad-smaller>