delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/02/14/14:12:12

From: "Alexei Sinitsyn" <sinitsin AT norsi DOT nnov DOT ru>
Newsgroups: comp.os.msdos.djgpp
Subject: how to compile win32 program with cygwin
Date: Mon, 14 Feb 2000 14:01:21 +0300
Organization: Commercial Information Networks
Lines: 19
Message-ID: <888n69$1r6l$1@news.kis.ru>
NNTP-Posting-Host: mail.norsi-oil.nnov.ru
X-Trace: news.kis.ru 950525964 60629 212.92.128.2 (14 Feb 2000 10:59:24 GMT)
X-Complaints-To: usenet AT news DOT kis DOT ru
NNTP-Posting-Date: 14 Feb 2000 10:59:24 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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?

Thank you in advance.
Alexei Sinitsyn



- Raw text -


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