Jump to content
  • Advertisement
Sign in to follow this  
chrono_one

VC++ 2010 build

This topic is 2845 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

So I'm writing a program that uses dx7(i know it's old) with VC++ express 2010. I can build my project just fine in Debug mode. It compiles and executes. When I switch to Release mode however, I get this error:

1>DDFuncs.obj : error LNK2001: unresolved external symbol _DirectDrawCreateEx@16
1>DDFuncs.obj : error LNK2001: unresolved external symbol _IID_IDirectDraw7

Could someone just go through a list of what might be wrong with this? Thanks folks.

Share this post


Link to post
Share on other sites
Advertisement
Did you add the correct libraries to both your debug and release configuration? You have to set them for each case.

Share this post


Link to post
Share on other sites
Quote:
Original post by karwosts
Did you add the correct libraries to both your debug and release configuration? You have to set them for each case.


If you're talking about Project->Properties->Configuration Properties-Linker->Input, ddraw.lib and dxguid.lib are included, along with a bunch of other libraries which aren't listed in the Debug mode.

Phew that was a mouthful

Here's debug mode linker input:

ddraw.lib;dxguid.lib;%(AdditionalDependencies)


Release

ddraw.lib;dxguid.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)

Share this post


Link to post
Share on other sites
Quote:
Could someone just go through a list of what might be wrong with this

That version of DirectX is not supported by the compiler, in fact only June 2010 has support for Vs2010.

Share this post


Link to post
Share on other sites
Okay, I thought it might be something like that. I'm using the August 2009 DirectX SDK, because newer version don't seem to support DirectDraw at all. Oh well, guess I'll have to modernize.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

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

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!