Click here to Skip to main content
11,636,985 members (69,485 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++/MFC
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?
Posted 5-Apr-11 0:21am
Edited 10-Dec-12 2:21am
CPallini at 6-Dec-12 17:43pm
Please show us the exact error message and the code wherein the error occurs.
Mahdi Nejadsahebi at 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 at 10-Dec-12 9:30am
You are missing a .lib reference in your Linker input properties.
Mahdi Nejadsahebi at 19-May-13 3:17am
i've solved it
i just have add this code:

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

i'm sorry
Mahdi Nejadsahebi at 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)

  Print Answers RSS
0 stibee 313
1 295
2 OriginalGriff 263
3 Sergey Alexandrovich Kryukov 240
4 Suvendu Shekhar Giri 225
0 OriginalGriff 8,941
1 Sergey Alexandrovich Kryukov 8,493
2 Mika Wendelius 6,909
3 F-ES Sitecore 2,388
4 Suvendu Shekhar Giri 2,320

Advertise | Privacy | Mobile
Web04 | 2.8.150728.1 | Last Updated 18 May 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100