שאלה ב openGL

the another one

New member
שאלה ב openGL

שלום ! אני מנסה להשתמש ב glaux.h כדי לעשות texture mapping. עכשיו, בדוגמאות שראיתי משתמשים בפונקציה ()auxDIBImageLoad אבל כשאני משתמש בה ומנסה לקמפל, ב linking אני מקבל את השגיאה : MAP.obj : error LNK2001: unresolved external symbo _auxDIBImageLoadA@4 מישהו יכול לעזור לי ?? פשוט חיפשתי בכל האינטרנט
(טוב, אולי לא...
) ולא מצאתי תשובה... בכל מקרה -תודה מראש
 

Oneros

New member
aux tools

windows comes with a version of OpenGL for windows and it does not come with a few OpenGL tools, like glut and aux. any way, go to your platform SDK under your VC++ folder, see the include directory - do you have glaux.h? if not, go to the link below, dowload what you need and have fun Another thing: have you linked the glaux.lib to your project?
 

Oneros

New member
linking additional libraries

the question is not how to link the glaux.lib but how did you get the OpenGL running without knowing how to do it more to the point: i assume you have all the correct files in the correct places. in Visual Studio .Net right click the project and select properties Open the Linker folder on the left of the box, click Input the first line is additional dependencies, there you type all the libraries yuo wish to include like: glaux.lib opengl32.lib glu32.lib glut32.lib the seperation is by spaces Visual Studio 6 is not so much different, go to project setting and there the names are similar (even though the interface is different) so you should be able to be fine
 

the another one

New member
תודה !

ד"א אפשר גם להוסיף את השורה :
#pragma comment (lib, "glaux.lib")​
בתחילת התוכנית במקום מה שאמרת...
 

Oneros

New member
No prob's

Yes, i guess the pragma is also a way which is probably better for cross platform application, but if you ever get to large projects with many files, adding it once to the project in the begining just saves a cuple of future errors.
 
למעלה