Jump to content
  • Advertisement
Sign in to follow this  
davethebrave

error LNK2019

This topic is 4792 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 ran into troubles building my first directsound example. here is the code: #include "stdafx.h" #include <dsound.h> int _tmain(int argc, _TCHAR* argv[]) { IDirectSound *ds; DirectSoundCreate(NULL, &ds, NULL); return 0; } and thats what i get: sinus.obj : error LNK2019: Nicht aufgelöstes externes Symbol '_DirectSoundCreate@12', verwiesen in Funktion '_main' Debug/sinus.exe : fatal error LNK1120: 1 unaufgelöste externe Verweise ide: visual studio.net 2003 sdk: directx 9c the path to the directx include and lib directories are properly set, so whatelse do i need?

Share this post


Link to post
Share on other sites
Advertisement
You do not only need to specify WHERE the libraries are (i.e. the library path), but also WHICH libraries you want to use. Did you add the required .lib files to your linker settings ?

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!