Monday, July 20, 2009

cannot find -lGL

I was working on my tank game in Code::Blocks and suddenly it started throwing this error whenever I tried to build. Turns out it's an error from 'ld', the GNU linker, and means that it can't find the openGL library: libGL.so. I looked in /usr/lib/ and found 'libGL.so.1', so I copied that to 'libGL.so'. That was it, all fixed.
Still no clue how that happened. I'd been happily building mere minutes beforehand.

No comments: