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