From: WESTER@ilt.fhg.de ("R. Wester")
Subject: undefined reference to  'MessageBoxA@16'
10 Apr 1997 14:06:39 -0700
Approved: cygnus.gnu-win32@cygnus.com
Distribution: cygnus
Message-ID: <9704101606.AA22255.cygnus.gnu-win32@ee2s01.ilt.fhg.de>
Reply-To: WESTER@ilt.fhg.de
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
X-ENV: (mailgw1.fhg.de) WESTER@ilt.fhg.de -> gnu-win32@cygnus.com.VIA-SMTP
Comments: Authenticated sender is <WESTER@pop.ilt.fhg.de>
Original-To: gnu-win32@cygnus.com
X-Mailer: Pegasus Mail for Win32 (v2.42a)
Original-Sender: owner-gnu-win32@cygnus.com

Hi,

when compiling and linking:

#include <windows.h>
int STDCALL
WinMain (HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmd, int nShow) 
{
     MessageBox(NULL, "Test message", "Test", MB_OK);
     return 0;
}

with
    C:\test> gcc wintest.c

I get the error message:

    C:\temp/cc0010001.o(.text+0x26):wintest.c: undefined reference to 
              'MessageBoxA@16'

Can anybody tell me what is wrong?

Thanks in advance

--Rolf

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
