|
From: Smith, J. N. <jn...@ut...> - 2003-05-15 23:26:09
|
Sorry about the repeated topic, but...
I've looked through the archives and the online forum. I've successfully
used GLUT on Dev-C++ 4.0. 4.9.8 (5) is stumping me. I've got all the
libraries from the installation and 3.7.6 dll (which I'm not using) in
Windows/System[32]. I'm not sure what to do, now.
Under Tools->Compiler Options->Compiler I have the "Add the following
commands..." checked with the following commands
-lopengl32 -lglu32 -lglut32
The "source" looks like this: (I know this doesn't make a window or
initialize)
#include <windows.h>
#include <gl/glut.h>
#include <gl/gl.h>
int main(int argc, char *argv[])
{
return 0;
}
The compiler spits out this:
Compiler: GLUT
Building Makefile: "C:\Documents and
Settings\thechao\Desktop\NJGLUT\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\thechao\Desktop\NJGLUT\Makefile.win"
all
g++.exe -c main.cpp -o main.o -I"C:/Program Files/Dev-Cpp/include/c++"
-I"C:/Program Files/Dev-Cpp/include/c++/mingw32" -I"C:/Program
Files/Dev-Cpp/include/c++/backward" -I"C:/Program Files/Dev-Cpp/include"
-I"C:/Program Files/Dev-Cpp/include/GL" -lopengl32 -lglu32 -lglut32
g++.exe: -lopengl32: linker input file unused because linking not done
g++.exe: -lglu32: linker input file unused because linking not done
g++.exe: -lglut32: linker input file unused because linking not done g++.exe
main.o -o "NJGLUT.exe" -L"C:/Program Files/Dev-Cpp/lib"
main.o(.text+0x15):main.cpp: undefined reference to `__glutInitWithExit@12'
main.o(.text+0x32):main.cpp: undefined reference to
`__glutCreateWindowWithExit@8'
main.o(.text+0x50):main.cpp: undefined reference to
`__glutCreateMenuWithExit@8' make.exe: *** [NJGUI.exe] Error 1 Execution
terminated
|