delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/12/05/14:49:24

From: carvalho AT penelope DOT dss DOT inpe DOT br (Himilcon de Castro Carvalho)
Subject: Compiling for Win32 API
5 Dec 1997 14:49:24 -0800 :
Message-ID: <01bd01a0$b0b096c0$2010a396.cygnus.gnu-win32@carvalho1.dss.inpe.br>
Mime-Version: 1.0
To: "Gnu-Win32" <gnu-win32 AT cygnus DOT com>

Hello,

I have tried to compile a Windows version of "Hello World", called
winnie.cpp
written by  Bartosz Milewski, 1995, with the command:

c++ -DSTRICT  -o winnie.exe winnie.cpp

Compilation results in many errors about undefined references, like the
following:

C:\WINDOWS\TEMP\cc0010001.o(.text+0x8f):winnie.cc: undefined reference to
`GetMessageA AT 16'

Since I have never programmed for Windows (but only for Unix and XWindows),
and I'm not used to specific include files or libraries in this case, could
someone give me some hint about what I should do?

Thanks,

Himilcon


-
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