Displaying 1 result from an estimated 1 matches for "libsdlmain".
2008 Jun 03
1
wine can not handle running a simple SDL program that calls
...ce std;
int main(int argc, char ** argv)
{
cout << "Hello" << endl;
cout << "Goodbye" << endl;
return 0;
}
I compile with this command: i586-mingw32msvc-c++ -o tmp.exe tmp.cpp -I$HOME/tmp/include -L. -lmingw32 -lSDLmain -lSDL
I got my SDL.dll and libSDLmain.a files from the official SDL download page. ~/tmp/include contains the SDL include headers.
When I execute tmp.exe, I get the error message specified above. SDL for Windows won't write to stdout. Instead, it writes to stdout.txt in the current directory. After executing, stdout.txt contains &...