Subject: undefined reference to 'MessageBoxA@16'
From: [email-masked] ("R. Wester")

10 Apr 1997 14:06:39 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Reply-To: [email-masked]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7BIT
X-ENV: (mailgw1.fhg.de) [email-masked] -> [email-masked]
Comments: Authenticated sender is <[email-masked]>
Original-To: [email-masked]
X-Mailer: Pegasus Mail for Win32 (v2.42a)
Original-Sender: [email-masked]

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
"[email-masked]" with one line of text: "help".