I’m working on a project using SDL and DirectShow (for capture video from webcam) with Visual C++. I’m trying to integrate a directShow sample “PlayCap” to my SDL program. However, the PlayCap program use Multi-threaded debug as the runtime library while SDL needs Multi-threaded dll. Wwe I put them together, it got lots of linking error.
If I use Multi-thread debug, it got some errors like
error LNK2005:_exit already defined in LIBCMTD.lib (crt0dat.obj)
If I use Multi-thread dll, it got some errors like
error LNK2005:_exit already defined in MSVCRT.lib (MSVCR71.obj)
I’m working on a project using SDL and DirectShow (for capture video from webcam) with Visual C++. I’m trying to integrate a directShow sample “PlayCap” to my SDL program. However, the PlayCap program use Multi-threaded debug as the runtime library while SDL needs Multi-threaded dll. Wwe I put them together, it got lots of linking error.
If I use Multi-thread debug, it got some errors like
error LNK2005:_exit already defined in LIBCMTD.lib (crt0dat.obj)
If I use Multi-thread dll, it got some errors like
error LNK2005:_exit already defined in MSVCRT.lib (MSVCR71.obj)
How can I solved this problem?
Either change the runtime library settings for playcap or rebuild SDL
with the settings playcap uses.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment