Re: How to add cpp file to SDL
"Ryan C. Gordon" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Organization | icculus.org |
| Message-ID | <[email protected]> |
> How to resolve it? You probably need to link against Microsoft's C++ runtime. SDL's Visual Studio project files don't link against _any_ C or C++ runtime at all (we implement our own malloc() using Win32 calls directly, etc). This is not my area of expertise, but it's probably just a simple change in the project files to fix this (but if you're planning on submitting this as a patch for SDL, we can't take in a C++ dependency). Alternately: I presume DirectShow is a COM interface; you can call these from C with some magic macros. Here's an example of calling some IDirectSound methods, to see this sort of thing in action: https://hg.libsdl.org/SDL/file/18f1e8b0737d/src/audio/directsound/SDL_directsound.c#l210 --ryan.