error question
Ive been using LaMothe''s "Tricks" book and been trying to use functions from header files he made that I include in my program.
I often get error messages like these and I dont know what they mean or how to fix them
Animal.obj : error LNK2001: unresolved external symbol "int __cdecl Load_Bitmap_File(struct BITMAP_FILE_TAG *,char *)" (?
Load_Bitmap_File@@YAHPAUBITMAP_FILE_TAG@@PAD@Z)
Animal.obj : error LNK2001: unresolved external symbol "int __cdecl DDraw_Fill_Surface(struct IDirectDrawSurface4 *,int)" (?
DDraw_Fill_Surface@@YAHPAUIDirectDrawSurface4@@H@Z)
Debug/Animal.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.
Ive seen errors like this a lot, not just in this example and they have always confused me.
What Ive been trying to do lately is load a bitmap from a file and put it on the screen using his functions, but I cant get it to work. Any advice would be appreciated. Thanks
The problem is that you have to include the 3 library files into your project. Also, you have to go to the project then settings then link tab to include the libraries for directx...like ddraw.lib,dsound.lib,dinput.lib
"The road of excess leads to the palace of wisdom." --William Blake
"The road of excess also just ends making me tired because I'm too lazy" --Nazrix
Edited by - Nazrix on July 15, 2000 3:44:43 PM
"The road of excess leads to the palace of wisdom." --William Blake
"The road of excess also just ends making me tired because I'm too lazy" --Nazrix
Edited by - Nazrix on July 15, 2000 3:44:43 PM
Need help? Well, go FAQ yourself. "Just don't look at the hole." -- Unspoken_Magi
or you can add this in your header file:
#pragma comment(lib, "ddraw")
...
----------
Mail me, Drago's OpenGL Website
#pragma comment(lib, "ddraw")
...
----------
Mail me, Drago's OpenGL Website
osu!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement