Sign in to follow this  
chrono_one

VC++ 2010 build

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this