Skip to main content
GameDev.net gamedev.net
🔒 Locked

Getting a weird error.

Started by zergdeath1 Oct 30, 2004 at 10:39 AM 3 replies 400+ views
Original Post
zergdeath1
zergdeath1
The tutorial I am using keeps putting the #include at the top of the program. Now the program wont compile and it give me just two errors? In file included from C:/Documents and Settings/Knapp Family/Desktop/glut51/glutsnowman.cpp What does that error mean. all it is a directory. Im also getting this one: redeclaration of C++ built-in type ` wchar_t' I am new to all this and this is confusing to heck out of me.
zergdeath1
zergdeath1
I still have yet to get a Open GL application to work. Can someone plz help me I've been trying to get this to work for 3 days. Most of the programs I try to compile say this as the first error.

[Linker error] undefined reference to `__glutInitWithExit'

Then they have about 100 other errors, not all to glut but every where. I am pretty sure i have glut and open GL installed correctly.

Here is my linker now:

-lglu32 -lglut32 -lopengl32
-lmingw32 -lSDLmain -lSDL


Please Help me. I finally understand the tuts on Open Gl and then it doesn't work...
Khaosifix
Khaosifix
For the love of God stop linking to SDL. Don't link SDL with GLUT!!
---http://www.michaelbolton.comI constantly dream about Michael Bolton.
zergdeath1
zergdeath1
is that what the problem is?
zedzeek
zedzeek
yes u shouldnt be using sdl with glut (as they both do similar things choose one or the other)

anyways but the error is something like this,
the glut lib/dll/header files are not from the same veiosn of glut, or that glut hasnt beeen compiled for your compiler, perhaps youre using a visualc version of the libs when u need one built from mingw32

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.