Hello,
i have the following problem. I should put a texture on a Disk.
Here is the code i used can anybody tell me why it doesn’t work?
Here is the code for the texture function:
First you need to bind the texture to a unique texture id. Look up glBindTexture. Then you need to tell GLU to generate texture coordinates. Look up glQuadricTexture.
This is from your topic, i was wondering if this code will will work using a borland c++ builder CONSOLE application. I got errors when i tried to do this. I tink it’s because the function auxDIBImageLoadA don’t work with console apps. Am i talkin poop or is it d case? Why did i get the following then:
[Linker Error] Unresolved external ‘auxDIBImageLoadA’ referenced from… blah blah blah
You need to link with the library that contains auxDIBImageLoadA. In MSVC, it’s glaux.lib, but don’t know if it’s available on Borland compilers. Anyways, there are tons of code on the net to load images. Use a search engine and you will find some.
Nope! I don’t no. I’m still getting the error. I’ve included the glaux header file. Am i thick or is there something else i have to do to get the glaux.lib???
[Linker Error] Unresolved external ‘auxDIBImageLoadA’ referenced from blah blah blah.
I have included it! Well i think so anyway, does this line do it: #include “glaux.h”
if not how do i include the library???
The double qoutes indicate the header is in the present project directory with the source code and all the other files. I THINK, i’m not 100% on this.
I don’t no, mayb i’ve been smokin something strange but i think this line means i’ve linked the program to the glaux library which is in the same directory.
To quote my user name, i need help!
[This message has been edited by I_NeedHelp (edited 01-14-2003).]
[This message has been edited by I_NeedHelp (edited 01-14-2003).]
Including the header is not the same as linking to the library. A header is generally a bunch of pre-declarations so that your code knows about function prototypes, and such. A library is where the actual object code for those functions are stored.
How you include the library is dependent on the environment you are using. You say you are using Borland. Are you using the Borland IDE, or just the free command-line tools? If the IDE, there should be some menu setting for including libraries in the project. If the command-line tools, you will have to use a compiler setting to tell the compiler to include that library.
I don’t remember for sure, but I think Borland also supported adding a line like so:
Ok. Sorted it out. Added that line of code and didn’t work BUT (and thats a big butt) when i got an up-to-date version of the glaux library (from nehe’s tut 6 borland download) everyting snapped in2 place. Thanks for all the help