Re: How to add cpp file to SDL
"leagor" <[email protected]>
| Newsgroups | gmane.comp.lib.sdl |
|---|---|
| Message-ID | <[email protected]> |
With my ability, I have to give up adding cpp file temporarily. Very much hope that SDL can support capture video! -----Original Message----- From: SDL [mailto:[email protected]] On Behalf Of Ryan C. Gordon Sent: Sunday, November 27, 2016 2:39 PM To: SDL Development List <[email protected]> Subject: Re: [SDL] How to add cpp file to SDL > 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_direct sound.c#l210 --ryan. _______________________________________________ SDL mailing list [email protected] http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org