Jump to content
  • Advertisement

Archived

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

davior

Texturemapping problem

This topic is 6924 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

I am currently learning openGL, and I seem to be having trouble with a function used to return my bmp data into a memory location. Following is a copy of the code where the problem is occuring, on the 4th line concering the imageLoad function: ========================================= if (File) { fclose(File); return auxDIBImageLoad(Filename); } ================================================== This is the error I am getting when the code trys to link. It compiles OK.: Error: Unresolved external ''auxDIBImageLoadA'' referenced from C:\CCCC\OPENGL\TEXTUREMAP\TEXCUBE.OBJ Any help is much appreciated.

Share this post


Link to post
Share on other sites
Advertisement
You are attempting to use the aux library. I don''t even know if MSVC++ still comes with the proper headers for it. The aux library was replaced with glu, so look for a similar function ther if you can''t get glaux.h.

Share this post


Link to post
Share on other sites
Yeah, I am using glaux.h, and it is still included in the openGL SDK. I really don't understand what's going on.. I know the program is fine, because I was able to run it on a differant computer, but when I try there is always a problem with the linking process. It says that there is a problem with the function which is part of glaux.h
This function is supposed to load an image and return it in bits so it can be read by the system. Are there any functions which I could use instead of auxDIBImageLoad??? Also for some reason this fucntion is being changed from auxDIBImageLoad to auxDIBImageLoadA when compiled to the .obj file. Is this supposed to happen??




Edited by - davior on 5/3/00 12:02:36 PM

Share this post


Link to post
Share on other sites
That name change problem reminds me of a error I''ve had a couple times with the CreateWindow() and other such WinAPI function calls. I don''t remember exactly how I fixed it, but I think it had to do with not including the right header files or not in the right order... you might want to play around with this and if anyone else can give a more concrete explaination, great!

Check out the GPI project today!

Share this post


Link to post
Share on other sites
Which version of VC++ are you using?

Be sure to include all these:

#include "gl\gl.h"
#include "gl\glu.h"
#include "gl\glaux.h"

note when I use the speech marks I really mean angled brackets, but you can't put them in on this board.

You might also want to be sure you included these:

OpenGL32.lib GLu32.lib GLaux.lib

in your project settings->link tab.

Thats the only things I can think of that may not be working right now.

Hope it helps,

-Mezz


Edited by - Mezz on 5/3/00 12:53:44 PM

Share this post


Link to post
Share on other sites
Thanks for your replies Ill have a play around with it when I get home tonight. The order of the include files sounds like a likely problem, as I am including all neccessary header files and libraries.
Also, I think I noticed that one of the OpenGL header files included the others in it. I think it was glaux.h and it included gl.h and glu.h.... something like that, or maybe I'm thinking of something else...





Edited by - davior on 5/4/00 6:26:45 PM

Share this post


Link to post
Share on other sites
OpenGL SDK ? how to get it ? I can''t seem to get a opengl 1.2 sdk or maybe those complete headers and libraries. I''ll need the microsoft implementation and I refuse to have anything to do with glut.

Share this post


Link to post
Share on other sites
OK. Re the OpenGL SDK, I too thought that I was having a problem getting it. I though WOW this must be a really big library of headers and library files and I went to the official site and thought "What the hell... I can''t find it!!"... It was then I realised that I already had it on my PC.. It must be about 2 meg in full(at the most), and if you have a compiler then I would put money on it that you already have it... Check in your include directory for another directory called "GL"... Look in there and there should be 3 header files called gl.h glu.h and glaux.h...
You should also have the library files.. there are 3 I believe, and these should be in the LIB directory...
I this is not thes case, look on the official site for a place for end users to down load the openGL drivers, and I think these would include the header and lib files...
Happy coding ....
Davior


Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!