Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.


error question

This topic is 6729 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post

Link to post
Share on other sites
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

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!