I have a great problem with this porting
building usual sdl is simple
http://www.libsdl.org/extras/win32/mingw32/README.txt
zlib libjpeg libpng giflib libtiff
installing was hard but i did
then SDL_image install was simple
I took my sources from simple lerning project
make clean && make
g++ compile good
at the linking stage hid very strange bug:
http://clip2net.com/clip/m46295/1286697362-clip-27kb.png
g++ said:
I am resolving...
resolving...
and here too...
I have resolved some data structures. It is going to work good!
error 1
oh no! it is your own fault!
=(
views:
27answers:
1
A:
answer is here!
http://stackoverflow.com/questions/2512523/error-compiling-win32-api-gui-code-with-mingw
using windows.h
compiling with -mwindows
replacing int main() with
int WINAPI WinMain (
HINSTANCE hInst,
HINSTANCE hPrevInst,
char const * cmdParam,
int cmdShow)
all compile link and work good
now I am googling to hack:
how not to replace main with winmain
puchu
2010-10-10 09:04:38