This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: undefined reference to 'MessageBoxA@16'


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@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@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]