Click here to Skip to main content
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
(unknown member)
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 Sergey Alexandrovich Kryukov 503
1 OriginalGriff 384
2 George Jonsson 258
3 Animesh Datta 130
4 Shemeemsha RA 128
0 OriginalGriff 6,099
1 Sergey Alexandrovich Kryukov 5,411
2 CPallini 4,770
3 George Jonsson 3,400
4 Gihan Liyanage 2,522

Advertise | Privacy | Mobile
Web04 | 2.8.140916.1 | Last Updated 18 May 2013
Copyright © CodeProject, 1999-2014
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