Re: [Dev-C++] Trouble Compiling OpenGL apps
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Nurhidayat <dh...@ma...> - 2001-07-17 06:32:56
|
At 01:55 AM 7/17/01 EDT, you wrote:
>I read the faq in the built in help about OpenGL, and put these two
options in the Project/Further Object files
>
>-lopengl32 -lglut32
>
>I try to compile this source from an OpenGL book, but get many errors.
Skip the code if you want... I doubt that's the problem.
>All the errors I get look like this... so no point in pasting them all.
Different errors for every gl/glut call made in the program.
>
>c:\my documents\simpleglmain.o(.text+0x19):simpleglmain.c: undefined
reference to `_imp__glClear'
>c:\my documents\simpleglmain.o(.text+0x36):simpleglmain.c: undefined
reference to `_imp__glColor3f'
>
>What am I doing wrong?
>
I try recompile your source code, but I don't found any errors.
Two functions: glClear and glColor3f those your compiler reported, are
contained by libopengl32.a library. Try search _imp__glClear@ and
_imp__glColor3f@ in libopengl32.a file using your text editor. If you
wouldn't find them, you may have incomplete/broken library file. If you
find, please check your project options.
-lopengl32 with ('l' lowercase) is different to -Lopengl32 ('L' uppercase).
___Nurhidayat___
|