Jump to content
  • Advertisement
Sign in to follow this  
zlatko_bre_1985

Visual Studio 2003 and directx problem

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

Hi i am rewriting my wrapper classes for directx in visual studio 2003.net and when i compile this is the error i get ( at Direct3DCreate9(D3D_SDK_VERSION)) Zarcanoid error LNK2019: unresolved external symbol _Direct3DCreate9@4 referenced in function "public: __thiscall ZD3D::ZD3D(void)" (??0ZD3D@@QAE@XZ) Zarcanoid fatal error LNK1120: 1 unresolved externals I got this error before and i solved it by installing some directx sample and than deleting all files except project files.Then i created my files and everything was going fine. So can somebody tell how to setup project options or whatever i need. Thanks, Zlatko

Share this post


Link to post
Share on other sites
Advertisement
You need to link in the libraries that come with DirectX, which is probably done in the sample's project files already. Go into the Project Options menu and see where you can add libraries. Add the DX libraries there.

Greetz,

Illco

Share this post


Link to post
Share on other sites
i didnt find in project options VC++ directories but in tools->projects and there are directX include and library directories

Is there maybe something other that i need to link to?

EDIT:: i found additional dependencies in project options
is that what i was looking and if yes whit what to link

this its state

comctl32.lib dxerr9.lib d3dx9d.lib winmm.lib dsound.lib dxguid.lib odbc32.lib odbccp32.lib

Share this post


Link to post
Share on other sites
Great. The menu title differed because I'm not using VS 2005 but VS 6.0 (98). It is not so strange the library is not included by default. You can do many different projects with VS and not all of them require the library. If regarding professional use of VS, very few projects actually need it.

Greetz,

Illco

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!