VC++, Qt and SDL Problem

Hi,

I try to compile a Qt and SDL Programm under VC++.
I get the following message:

sdlmain.lib(SDL_main.obj) : error LNK2005: _WinMain at 16 bereits in
qtmain.lib(qtmain_win.obj) definiert

means:

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

No idea what to do.

Has anyone already compiled a QT and SDL Programm under Windows ?

Greets

Daniel–
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Call SDL_RegisterApp() in your main() function (I believe…). So you won’t
have to link to sdlmain… I forget exactly…

----Original Message Follows----From: pitzelberger@gmx.de (don jon)
Reply-To: sdl at libsdl.org
To: sdl at libsdl.org
Subject: [SDL] VC++, Qt and SDL Problem
Date: Tue, 30 Apr 2002 14:44:04 +0200 (MEST)
MIME-Version: 1.0
Received: from [66.224.24.122] by hotmail.com (3.2) with ESMTP id
MHotMailBE97DCEE000B4004389842E0187A997C0; Tue, 30 Apr 2002 05:45:39 -0700
Received: from localhost.localdomain ([127.0.0.1]
helo=twomix.devolution.com)by twomix.devolution.com with esmtp (Exim 3.22
#2)id 172WzS-0005yx-00; Tue, 30 Apr 2002 05:44:18 -0700
Received: from [213.165.64.100] (helo=mx0.gmx.net)by twomix.devolution.com
with smtp (Exim 3.22 #2)id 172Wz7-0005yi-00for sdl at libsdl.org; Tue, 30 Apr
2002 05:43:57 -0700
Received: (qmail 32606 invoked by uid 0); 30 Apr 2002 12:44:04 -0000

From sdl-admin at libsdl.org Tue, 30 Apr 2002 05:46:11 -0700
X-Priority: 3 (Normal)
X-Authenticated-Sender: #0011534174 at gmx.net
X-Authenticated-IP: [134.155.65.201]
Message-ID: <13453.1020170644 at www10.gmx.net>
X-Mailer: WWW-Mail 1.5 (Global Message Exchange)
X-Flags: 0001
Sender: sdl-admin at libsdl.org
Errors-To: sdl-admin at libsdl.org
X-BeenThere: sdl at libsdl.org
X-Mailman-Version: 2.0.5
Precedence: bulk
List-Help: <mailto:sdl-request at libsdl.org?subject=help>
List-Post: <mailto:sdl at libsdl.org>
List-Subscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=subscribe>
List-Id: A list for developers using the SDL library. (includes
SDL-announce) <sdl.libsdl.org>
List-Unsubscribe:
http://www.libsdl.org/mailman/listinfo/sdl,<mailto:sdl-request at libsdl.org?subject=unsubscribe>
List-Archive: http://www.libsdl.org/pipermail/sdl/
X-Original-Date: Tue, 30 Apr 2002 14:44:04 +0200 (MEST)

Hi,

I try to compile a Qt and SDL Programm under VC++.
I get the following message:

sdlmain.lib(SDL_main.obj) : error LNK2005: _WinMain at 16 bereits in
qtmain.lib(qtmain_win.obj) definiert

means:

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

No idea what to do.

Has anyone already compiled a QT and SDL Programm under Windows ?

Greets

Daniel


GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


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

???V?I?T?A?L?I?Y???


Chat with friends online, try MSN Messenger: http://messenger.msn.com