Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 323810

Summary: Makefile generation is wrong, -o argument
Product: [Tools] CDT Reporter: Kevin Erhardt <kevin.erhardt>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED DUPLICATE QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: kevin.erhardt
Version: 7.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

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 ***