hi
i use qt to create a project, and i include sdl in the project.(all are
under MS windows) And when i complile the project, a link error occurs:
SDLmain.lib(SDL_main.obj) : error LNK2005: _WinMain at 16 already defined in
qtmain.lib(qtmain_win.obj)
qt and sdl all define Win_Main. How can i use sdl in qt project?
hi
i use qt to create a project, and i include sdl in the project.(all are
under MS windows) And when i complile the project, a link error occurs:
SDLmain.lib(SDL_main.obj) : error LNK2005: _WinMain at 16 already defined in
qtmain.lib(qtmain_win.obj)
qt and sdl all define Win_Main. How can i use sdl in qt project?
hi
i use qt to create a project, and i include sdl in the project.(all are
under MS windows) And when i complile the project, a link error occurs:
SDLmain.lib(SDL_main.obj) : error LNK2005: _WinMain at 16 already defined in
qtmain.lib(qtmain_win.obj)
qt and sdl all define Win_Main. How can i use sdl in qt project?
You need to modify the Qt WinMain() to call SDL_RegisterApp() with the
main application module handle, and then don’t link with SDLmain.lib.
Please let me know if this works!
See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment