Fedora Linux Support Community & Resources Center
  #1  
Old 25th November 2010, 12:23 AM
schrja Offline
Registered User
 
Join Date: Apr 2009
Posts: 19
linuxfedorafirefox
Eclipse Hello World project problem

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
Reply With Quote
Reply

Tags
eclipse, problem, project, world

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Eclipse problems - Helllo World project does not compile schrja Using Fedora 2 22nd November 2010 03:08 PM
Problem debugging hello world with eclipse in FC4 White_Tiger75 Using Fedora 3 10th November 2006 03:39 PM
How Do I Run A Project In Fedora Eclipse? JLuv3k7 Programming & Packaging 8 4th April 2006 07:16 PM
Eclipse can't create project XenoTron Using Fedora 5 5th September 2005 10:50 AM
Eclipse 3.0 crashes after Project goes bad meslick Using Fedora 2 14th June 2005 10:22 PM


Current GMT-time: 15:32 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat