Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] problem building managed make project with CDT 2.0

<x-tad-bigger>I just installed Eclipse 3.0 and the CDT 2.0 this morning, and I've been unable to build a managed make project which previously built without error using Eclipse 3.0 RC 1 and CDT 2.0 M9. I keep getting an error from the linker due to a missing space between the -o and the artifact name (mo_2, in my case). The exact error is "ld: unknown flag: -omo_2"; because of the missing space, it seems to be treating it as a linker flag, rather than the name of the output file. When I switched back to M9, the space is present in the g++ command line (see below for the command lines from each version). I am using Mac OS X, and I know the CDT is not officially supported for my platform...is this a known issue? Should I file a bug report?

Any help would be greatly appreciated.

Thanks,
Tim Perrigo

With Eclipse 3.0 (RC 1), CDT M9 (builds successfully):

make -k all
Building file: ../src/db_util.cpp
g++ -I/Users/tperrigo/workspace/mo_2/include -I/usr/local/include/jwsmtp-1.30 -I/Users/tperrigo/workspace/IntervalSet/include -I/usr/local/include/boost-1_31 -I/usr/local/pgsql/include -I/usr/local/include -O0 -g3 -DDEBUG=true -Wall -c -fmessage-length=0 -Wno-long-double -o src/db_util.o ../src/db_util.cpp
Finished building: ../src/db_util.cpp


Building target: mo_2
g++ -L/usr/local/pgsql/lib -L/usr/local/lib -o mo_2 src/MilesServer.o src/appointment_provider.o src/db_util.o src/email.o src/exceptions.o src/location.o src/main.o src/mo_types.o src/profile.o src/rate_service.o src/request.o src/request_provider.o src/request_view_data.o src/result.o src/shemp.o src/stakeholder.o -lpqxx -lpq -leasysoap -lcrypto -lssl -lexpat -lboost_thread-1_31 -lIntervalSet -lboost_date_time -ljwsmtp
Finished building: mo_2
Build complete for project mo_2


With Eclipse 3.0 (GA), CDT 2.0 (GA) (fails to build):

make -k all
makefile:15: no file name for `-include'
Building file: ../src/db_util.cpp
g++ -I/Users/tperrigo/workspace/mo_2/include -I/usr/local/include/jwsmtp-1.30 -I/Users/tperrigo/workspace/IntervalSet/include -I/usr/local/include/boost-1_31 -I/usr/local/pgsql/include -I/usr/local/include -O0 -g3 -DDEBUG=true -Wall -c -fmessage-length=0 -Wno-long-double -o src/db_util.o ../src/db_util.cpp
Finished building: ../src/db_util.cpp


make: *** [mo_2] Error 1
make: Target `all' not remade because of errors.
Building target: mo_2
g++ -L/usr/local/pgsql/lib -L/usr/local/lib -omo_2 src/MilesServer.o src/appointment_provider.o src/db_util.o src/email.o src/exceptions.o src/location.o src/main.o src/mo_types.o src/profile.o src/rate_service.o src/request.o src/request_provider.o src/request_view_data.o src/result.o src/shemp.o src/stakeholder.o -lpqxx -lpq -leasysoap -lcrypto -lssl -lexpat -lboost_thread-1_31 -lIntervalSet -lboost_date_time -ljwsmtp
ld: unknown flag: -omo_2
Build complete for project mo_2</x-tad-bigger>

Back to the top