SDL & QT under windows XP

I try to combine SDL and QT together to display video.
But always encounter the linking error:

Linking
SDLmain.lib(SDL_main.obj) error LNK2005:_WinMain at 16 already defined in qtmain.lib (qtmain_win.obj)

Do you think it is possible to combine QT and SDL together under windows?
Thank you for sharing your experience.

Best regards
Dong

I try to combine SDL and QT together to display video.
But always encounter the linking error:

Linking
SDLmain.lib(SDL_main.obj) error LNK2005:_WinMain at 16 already defined in qtmain.lib (qtmain_win.obj)

What happens if you don’t link with SDLmain.lib in this case?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

After deleting the SDLmain.lib from link opition, it works. Thank you.-----Original Message-----
From: sdl-admin at libsdl.org on behalf of Sam Lantinga
Sent: Thu 11/6/2003 4:32 PM
To: sdl at libsdl.org
Cc:
Subject: Re: [SDL] SDL & QT under windows XP

> I try to combine SDL and QT together to display video.
> But always encounter the linking error:
> 
> Linking
> SDLmain.lib(SDL_main.obj) error LNK2005:_WinMain at 16 already defined in qtmain.lib (qtmain_win.obj)

What happens if you don't link with SDLmain.lib in this case?

See ya,
        -Sam Lantinga, Software Engineer, Blizzard Entertainment

_______________________________________________
SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

-------------- next part --------------
A non-text attachment was scrubbed…
Name: not available
Type: application/ms-tnef
Size: 4162 bytes
Desc: not available
URL: http://lists.libsdl.org/pipermail/sdl-libsdl.org/attachments/20031106/f935c04d/attachment.bin

After deleting the SDLmain.lib from link opition, it works. Thank you.

Go ahead and post the steps to get Qt and SDL to work together. Many people
have asked about it.

Thanks!
-Sam Lantinga, Software Engineer, Blizzard Entertainment

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sam Lantinga wrote:
|>After deleting the SDLmain.lib from link opition, it works. Thank you.
|
| Go ahead and post the steps to get Qt and SDL to work together. Many
people
| have asked about it.

That would be nice indeed. Just having a qt-application running side by
side with an sdl-window is a hassle. I get strange mutex-errors, and
arbitrary coredumps :confused:

Regards,
\Mikkel Gjoel
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/spkhVsWk7H7gbVcRAmJFAJ0VIJAuTGGLsEdVcRfdxMOBtE+vfwCfXjat
UWU0UhoGnYOaKOedIe2Xk1k=
=8hQl
-----END PGP SIGNATURE-----

Sam Lantinga wrote:

After deleting the SDLmain.lib from link opition, it works. Thank you.
|
| Go ahead and post the steps to get Qt and SDL to work together. Many
people
| have asked about it.

That would be nice indeed. Just having a qt-application running side by
side with an sdl-window is a hassle. I get strange mutex-errors, and
arbitrary coredumps :confused:

Sorry about the question but I’ve missed the previous posts. I’ve got qt application which create SDL window and perform some operation on it without any problems (actually the SDL stuff is hidden in win32 library but this does not change much). I’ve no problems with sdlmain it is still in my link options. However I’ve tested it only on windows 98. Would be example of my code any help for you?

Jacek