How do you open the cd-rom in c++

Started by
13 comments, last by v0id 22 years, 3 months ago
i always get this when i try to compile it:




--------------------Configuration: CDaudio - Win32 Debug--------------------
Compiling...
open.cpp
Linking...
Open.obj : error LNK2001: unresolved external symbol __imp__mciSendStringA@16
Debug/Open.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

Open.exe - 2 error(s), 0 warning(s)
-< v0id http://ohiostreetcrew.cjb.net/ >-
Advertisement
You have to link to "winmm.lib".
how would that be accomplished?
-< v0id http://ohiostreetcrew.cjb.net/ >-
Either include winmm.lib in your project, or (if using MSVC) use
#pragma comment(lib,"winmm.lib")


"If people are good only because they fear punishment and hope for reward, then we are a sorry lot indeed." - Albert Einstein
yay it works now
-< v0id http://ohiostreetcrew.cjb.net/ >-

This topic is closed to new replies.

Advertisement