Click here to Skip to main content
15,040,743 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I wanna Load a texture(Image) in my MFC Dialog with OpenGL.
i used AUX_Imagerec fuction,but it reruens external unresolved error.

How Can I Do it?
Updated 10-Dec-12 2:21am
CPallini 6-Dec-12 17:43pm
Please show us the exact error message and the code wherein the error occurs.
[no name] 7-Dec-12 8:16am
error LNK2019: unresolved external symbol _auxDIBImageLoadA@4 referenced in function "struct _AUX_RGBImageRec * __cdecl LoadBMP(char const *)" (?LoadBMP@@YAPAU_AUX_RGBImageRec@@PBD@Z)
Richard MacCutchan 10-Dec-12 9:30am
You are missing a .lib reference in your Linker input properties.
[no name] 19-May-13 3:17am
i've solved it
i just have add this code:

#pragma comment(lib,"glaux.lib")

i'm sorry
[no name] 11-Dec-12 5:45am
thanks dear richard
well, how can i understand what "lib" i missed?
what name?
can you explain for me?
thanks agian friend

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900