Lesson 6 error
Well first off this new forum format is alot better looking than the old secound is my prolbem. I just tried to fix a bug on my own and I can''t figureout whats wrong with the compiler everytime I try to compile I get an external error...
Lesson6.obj : error LNK2001: unresolved external symbol _auxDIBImageLoadA@4
... now what could be causeing it I am not includeing the glaux.lib because it causes 3 other errors but I didn''t think i needed it for this. Could glux.lib be the proble. Please help me it shouldn''t be that big a problem I have solved some of thease on my own befor.
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
Yes the reason you are getting this error is cause you''re not linking in the glaux.lib library. Link this in and then post the other errors you that you are getting and well see if we can work around those =)
-=[Megahertz]=-
Ok well let me take a crack at that. I hope I managed to flush out the other errors.
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
Well it did help a little but 3 other errors popped up because of it. Here they are...
glaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
glaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
glaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
glaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegCloseKey@4
glaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegQueryValueExA@24
glaux.lib(tk.obj) : error LNK2001: unresolved external symbol __imp__RegOpenKeyExA@20
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
THANK YOU that did it. Well that bug will never get me again.
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
When you get errors like this, it is obvious you are missing a library or object file.
Identify the missing function - it''s usually obvious. (eg RegCloseKey), its part of the mangled ID (eg __imp__RegCloseKeyA@4).
Search your MSDN or help files for it in the Win32 API, and use QuickInfo to find the import library (eg advapi32.lib).
Of course, you might need something other than a Win32 function (a common problem with people installing PortaLib3D is getting unresolved externals from libPNG not being included).
~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
Identify the missing function - it''s usually obvious. (eg RegCloseKey), its part of the mangled ID (eg __imp__RegCloseKeyA@4).
Search your MSDN or help files for it in the Win32 API, and use QuickInfo to find the import library (eg advapi32.lib).
Of course, you might need something other than a Win32 function (a common problem with people installing PortaLib3D is getting unresolved externals from libPNG not being included).
~~~
Cheers!
Brett Porter
PortaLib3D : A portable 3D game/demo libary for OpenGL
~~~Cheers!Brett PorterPortaLib3D : A portable 3D game/demo libary for OpenGLCommunity Service Announcement: Read How to ask questions the smart way before posting!
I normaly do but I just got VC++6.0 (I had 4.0), and my hard drive space is extreamly limited (under 100MB remaining) so I opted not to install the help files when I build my new computer in Feb. I will put the Help files in but untill hen I rely on trial and error (unfortunatly more error than not).
A man walks into a bar.....ouch!?! Ya get it, do ya huh huh well....awww I give up.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement