• Advertisement

Archived

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

whats wrong?

This topic is 6028 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

hi all i startet NeHe openGL tutorial and now i got a prob at the textures: the compiler says glBindTexture and glGenTextures are undefined functions what did i wrong?

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
Did you link to all the right libraries?

Share this post


Link to post
Share on other sites
quote:
Original post by Anonymous Poster
Did you link to all the right libraries?


think so


#include
#include
#include

as given in the Nehe tut

Share this post


Link to post
Share on other sites
You need to link to:

opengl32.lib
glu32.lib
glaux.lib

If you use MSVC just go to Project menu->Settings->Link and add them to the Object/library modules.

Seeya
Krippy

Share this post


Link to post
Share on other sites
i only have the non-32 versions of this files
where do i get them?

Edited by - sense on July 15, 2001 5:36:47 AM

Share this post


Link to post
Share on other sites
ftp://ftp.microsoft.com/softlib/mslfiles/opengl95.exe but this problem is typical for old outdated Borland compilers. If that is the case do you need to convert the libs with coff2omf but the new headers are ok.
What is wrong with the free and up to date Borland compiler?

Share this post


Link to post
Share on other sites
the ones without the 32 in the name are the sgi libs. btw theres no reason to link to glaux.lib

http://members.xoom.com/myBollux

Share this post


Link to post
Share on other sites
Several of NeHe''s tutorials starting with number 6 use auxDIBImageLoad to load bitmaps, which requires glaux.lib

Seeya
Krippy

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Obelix
ftp://ftp.microsoft.com/softlib/mslfiles/opengl95.exe but this problem is typical for old outdated Borland compilers. If that is the case do you need to convert the libs with coff2omf but the new headers are ok.
What is wrong with the free and up to date Borland compiler?


"..\opengl32.lib contains invalid OMF record type 0x21"
is it that, what you mean?

where do i get this coff??

Share this post


Link to post
Share on other sites
I am having the same problem, and yes, I linked to the libraries...

Share this post


Link to post
Share on other sites
i''ve been doing the NeHe tutorials, i''ve done the first 15 in the last two days, and whenever i came across a problem i just opened up his source at the bottom of each tutorial and compared mine to his to see where i screwed up, or possibly, what he didn''t explain to do properly.

running on Visual C++ 6.0 Windows 98SE myself

hope this can help

Share this post


Link to post
Share on other sites
Just look in the documentation for the compiler if you have to make new import libraries!
If no such tool that coff2omf is available do you have to use something else like implib and perhaps also impdef. Everything should be described in the documentation.

Share this post


Link to post
Share on other sites

  • Advertisement