[SDL] Bug: Compiling SDL apps
John Silicon
jsilicon at earthlink.net
Tue Feb 14 10:22:53 PST 2006
Torsten Giebl wrote:
> Hello !
>
>
>
>> My best guess (not having access to those particular compilers here at
>> work), would be that you're getting screwed my C++ name mangling. Try
>> putting an `extern "C" { }` block around your main() in testsprite.cpp
>>
>
>
> This works, but this is not needed
> with the stable SDL version. Will this change again ?
>
>
> CU
>
>
This probably shouldn't have changed in any significant way (I can't
check at the moment -- again, work hold me back here) -- if it has, I'd
consider it a bug (or, at least, an issue) in CVS.
If it has been broken, I'm not familiar enough Cygwin's build tools to
give an exact way to fix it, but my gut wants me to ask if there is any
/clean/ way to detect the difference between `c` and `c++` and force c++
(from SDL's .h files) to treat make SDL_main compile with C naming
conventions?
- Silicon
More information about the SDL
mailing list