LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

link error: undefinied symbol in 'sndPlaySoundA@8'

I would like to play a wav-file with LabWindow/CVI on my WIN2k machine.

I wrote a program, which the LabWindow compiles, but when I try to run it, than I get:

link error:
undefined symbol 'sndPlaySoundA@8' referenced in "versuch.c"

the problems come when I have a program like this (cut down on the follwing):

#include "windows.h"
#include "cvirte.h"
#include "userint.h"
#include "utility.h"
#include "string.h"
#include "mmsystem.h"
#include "winnt.h"
#include "versuch.h" //program is called "versuch.c"

int main (void)
{
sndPlaySound ("c:\\WINNT\\MEDIA\\CHORD.WAV", SND_SYNC);
}

What can I do? Or where is the error exactly?
Thx for answering!
Greber
0 Kudos
Message 1 of 3
(3,372 Views)
Did you install SDK with CVI?
Did you add ..\CVI\sdk\lib\winmm.lib to your project?
Look at the sample project that ships with CVI: ...\CVI\samples\sdk\audio\sndplay.prj
0 Kudos
Message 2 of 3
(3,368 Views)
THX a lot.

I didn't saw the "winmm.lib" in the sample.
Now I can go on, thx.

Sincerely
Greber
0 Kudos
Message 3 of 3
(3,364 Views)