From: khan AT xraylith DOT wisc DOT edu (Mumit Khan) Newsgroups: comp.os.msdos.djgpp Subject: Re: how to compile win32 program with cygwin Date: 14 Feb 2000 17:27:20 GMT Organization: Center for NanoTechnology, University of Wisconsin-Madison Lines: 24 Message-ID: <889dto$2i0a$1@news.doit.wisc.edu> References: <888n69$1r6l$1 AT news DOT kis DOT ru> NNTP-Posting-Host: modi.xraylith.wisc.edu X-Trace: news.doit.wisc.edu 950549240 83978 128.104.182.219 (14 Feb 2000 17:27:20 GMT) X-Complaints-To: abuse AT doit DOT wisc DOT edu NNTP-Posting-Date: 14 Feb 2000 17:27:20 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com In article <888n69$1r6l$1 AT news DOT kis DOT ru>, Alexei Sinitsyn wrote: >Hi! > >I just tried to compile a very simple program that uses win32 function >(MessageBox), but >I got a message from linker that it couldn't find such a function, despite I >used the -luser32 option. > >here is the linker's message: > >my.o(.text+0x5a):my.cc: undefined reference to `MessageBoxA AT 16' >collect2: ld returned 1 exit status > >what should I do in such a situation? This is quite off-topic in djgpp list, so please forward this, plus a bit more info (what version of gcc, etc) to the Cygwin mailing list. http://sourceware.cygnus.com/cygwin/lists.html Regards, Mumit