This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
undefined reference to 'MessageBoxA@16'
- To: gnu-win32 at cygnus dot com
- Subject: undefined reference to 'MessageBoxA@16'
- From: "R. Wester" <WESTER at ilt dot fhg dot de>
- Date: Thu, 10 Apr 1997 18:05:05 +0100
- Organization: Fraunhofer ILT, Aachen, Germany
- Reply-To: WESTER at ilt dot fhg dot de
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".