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]

Compiling for Win32 API


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@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@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]