You are not logged in.

#1 2012-01-11 03:43:08

musasabi
Member
From: Chicago, IL
Registered: 2011-06-23
Posts: 63

[SOLVED] Code::Blocks will compile, but now I only get an object file

Hey everyone,

I'm sitting down to spend some free time tearing through the OpenGL Superbible this month, and attempting to start all development under Linux.

Presently, I've gotten Code::Blocks to compile... two out of three things. First, of course, I just did up a Hello World to make sure I had compiler paths correct and Code::Blocks knew how to use gnome-terminal (I'm on Gnome 3). Second, I just compiled and ran the stock GLUT project provided with Code::Blocks, since the Blue Book relies on GLUT.

Then, I typed out the first bit of example code in the book. I had to go grab their source code, add their GLTools/include/ directory to the search directories, and link with libGL and libglut. All well and good, no undefined functions or other funny business.

However, I hit F9 and Code::Blocks prompts me that "The project hasn't been built yet...". I check bin/Debug/ and, sure enough, it's empty. When I looked in obj/Debug/, though, I found an appropriately titled .o file in there.

What's going on here? Why is the linker getting hung up?

Oh, and I'm using Code::Blocks 10.05 and this is a fresh Arch install (as in, fetched this morning).

Thanks in advance. smile

Last edited by musasabi (2012-01-11 15:49:26)

Offline

#2 2012-01-11 15:49:09

musasabi
Member
From: Chicago, IL
Registered: 2011-06-23
Posts: 63

Re: [SOLVED] Code::Blocks will compile, but now I only get an object file

Ah, got it. Rogue .lib linked that didn't exist anymore. I had to enable full compiler logging in order to see it, though.

http://wiki.codeblocks.org/index.php?ti … problem.3F

Offline

Board footer

Powered by FluxBB