Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 323810 - Makefile generation is wrong, -o argument
Summary: Makefile generation is wrong, -o argument
Status: RESOLVED DUPLICATE of bug 232373
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-27 07:44 EDT by Kevin Erhardt CLA
Modified: 2010-08-27 09:01 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Erhardt CLA 2010-08-27 07:44:30 EDT
Hello,

I'm using CDT under MacOSX Leopard, I configured my build options in project preferences correctly. CDT builds fine exepts of the linking process. Following line in the makefile produce a build error:
g++ -std=gnu99 -framework OpenGL -framework GLUT -o"SpaceWarrior"  ./src/GraphicalEntity.o ./src/SpaceWarrior.o ./src/Terrain.o ./src/TgaImage.o

ld: unknown option: -oSpaceWarrior
collect2: ld returned 1 exit status

If I execute the same command in the Terminal with a space between -o "SpaceWarrior" then it works fine.

g++ -std=gnu99 -framework OpenGL -framework GLUT -o "SpaceWarrior"  ./src/GraphicalEntity.o ./src/SpaceWarrior.o ./src/Terrain.o ./src/TgaImage.o 

I guess there is a makefile generation bug, a space needs to be inserted between the argument and the target execution file name.

Cheers,

Kevin
Comment 1 Andrew Gvozdev CLA 2010-08-27 09:01:43 EDT
Marking as duplicate

*** This bug has been marked as a duplicate of bug 232373 ***