• ### Announcements

#### Archived

This topic is now archived and is closed to further replies.

# HOLY COW HELP ME FOR HEAVEN"S SAKES

## Recommended Posts

azaxaca    122
when i couldnt compile and run my program because of linker eroor, i pancked... and linked as many opengl files as possible ... but all the linker errors didnt go away!! please help!! the remaining errors were e:\myprojects\opengl\open.o(.text+0x17):open.cpp: undefined reference to __glutInitWithExit@12' e:\myprojects\opengl\open.o(.text+0x3b):open.cpp: undefined reference to __glutCreateWindowWithExit@8' e:\myprojects\opengl\open.o(.text+0x67):open.cpp: undefined reference to `__glutCreateMenuWithExit@8' and here are the files i linked libglu32.a glut32.lib GLU32.LIB OPENGL32.LIB libopengl32.a libglut.a libglut32.a ..I still dont get the difference between c and c++... Edited by - azaxaca on January 10, 2002 7:18:10 PM

##### Share on other sites
vincoof    514
Probably you are using a header (.h) which is different to the library you link (.lib). For instance, the header is for glut3 and the library you have is for glut2 (just an example). To check it simply, look at the dates for glut.h and glut32.lib

Which compiler do you use ? on which platform (win95/win98/winME/nt/2k/xp?) ?

##### Share on other sites
azaxaca    122
o my compiler is mingw or something, its used by teh Dev-C++
programming environment

and my computer is win xp, 800 megahertz, pentium 3, 128 mem

o and the glut.h and glut32.lib must be the same version because
the site i got it from distributed it in one single zip file
as the latest glut

..I still dont get the difference between c and c++...

Edited by - azaxaca on January 10, 2002 7:46:41 PM

##### Share on other sites
vincoof    514
Sorry I''ve never used that compiler.
Getting the files from a site doesn''t mean the file are correct. You couldn''t imagine how many versions of glut I had to download before I could get a correct one.

Obviously, the C++ is the C "plus" other features
C++ adds Object-Oriented Programming (called OOP) to the C. That''s mainly where the "++" come from.

##### Share on other sites
azaxaca    122
o i finally understand now
my compiler does not use the .lib files
but uses lib**.a files for linking
and my libglut32.a and libglut.a are not updated so
they must be an older version!!!
thank you
i must now go on a quest to search for those files...

my sig..

..I still dont get the difference between c and c++...