I am having problems getting eclipse to compile the debug version of the hello world c++ project it created. The following output is produced
make all
Building file: ../src/HelloWorld.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/HelloWorld.d" -MT"src/HelloWorld.d" -o"src/HelloWorld.o" "../src/HelloWorld.cpp"
cc1plus: error: to generate dependencies you must specify either -M or -MM
make: *** [src/HelloWorld.o] Error 1
If I set the active target to release, it works as follows
make all
Building file: ../src/HelloWorld.cpp
Invoking: GCC C++ Compiler
g++ -O3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/HelloWorld.d" -MT"src/HelloWorld.d" -o"src/HelloWorld.o" "../src/HelloWorld.cpp"
Finished building: ../src/HelloWorld.cpp
Building target: HelloWorld
Invoking: GCC C++ Linker
g++ -o"HelloWorld" ./src/HelloWorld.o
Finished building target: HelloWorld
I don't think this is an eclipse problem per say, even though someone filed the following bug report
https://bugs.eclipse.org/bugs/show_bug.cgi?id=330249
I have been trying to track down the options being used (by default). I have two problems
1) the -MMD option doesn't appear to show up in the documentation or help files
2) I can't figure out where the questionable options are being set in eclipse.
I am afraid I am overlooking something very basic. Can anyone help straighten me out?
John