There seems to be problem with linkin my program during the compilation.
make.exe -f “C:\Documents and Settings\Ketil\My Documents\Programmering\C++\OpenGLTest\Makefile.win” all
g++.exe main.o -o “OpenGLTest.exe” -L"C:/Dev-Cpp/lib"
This is what Dev-C++ 4.9.8.0 writes during the compilation. I’ve includet gl.h and glu.h. OpenGL32.lib, OpenGL.lib and glu32.lib is in my lib folder. (C:/Dev-Cpp/lib).
I recieve this:
main.o(.text+0x1b):main.cpp: undefined reference to `glViewport@16’
and alot more of them (35 to be exact!)
Originally posted by Anklebiter:
[b]There seems to be problem with linkin my program during the compilation.
make.exe -f “C:\Documents and Settings\Ketil\My Documents\Programmering\C++\OpenGLTest\Makefile.win” all
g++.exe main.o -o “OpenGLTest.exe” -L"C:/Dev-Cpp/lib"
This is what Dev-C++ 4.9.8.0 writes during the compilation. I’ve includet gl.h and glu.h. OpenGL32.lib, OpenGL.lib and glu32.lib is in my lib folder. (C:/Dev-Cpp/lib).
I recieve this:
main.o(.text+0x1b):main.cpp: undefined reference to `glViewport@16’
and alot more of them (35 to be exact!)
Those are windows functions, try -lwin32 or something similar, I don’t know the switch for the Windows gcc port offhand, as I haven’t used that compiler for quite some time. Should be in the documentation somewhere though.