Sign in to follow this  
davethebrave

error LNK2019

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

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