delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/04/11/02:54:09

From: jpmorgan AT unm DOT edu (James Paul Morgan)
Subject: Re: undefined reference to 'MessageBoxA AT 16'
11 Apr 1997 02:54:09 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <Pine.A32.3.91.970411024232.56304A.cygnus.gnu-win32@indus.unm.edu>
Mime-Version: 1.0
Original-To: "R. Wester" <WESTER AT ilt DOT fhg DOT de>
Original-cc: gnu-win32 AT cygnus DOT com
In-Reply-To: <9704101606.AA22255@ee2s01.ilt.fhg.de>
Original-Sender: owner-gnu-win32 AT cygnus DOT com

On Thu, 10 Apr 1997, R. Wester wrote:

> when compiling and linking:
> 
> #include <windows.h>
> {SNIP} 
> 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?
>
You're not linking against the right library.  Unfortunately, I'm not 
100% positive which library it is.  However, my windowing stuff is linked 
against: -lcomdlg32 -luser32 -ladvapi32 -lgdi32.

Unless someone else can tell you which one specifically, I'd suggest 
linking against each one individually until the message goes away.  :)


See ya around the Mulberry bush.

--James

:)

-
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".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019