delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/10/16/00:56:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Mon, 16 Oct 2000 02:26:36 -0230 (NDT)
From: Neil Zanella <nzanella AT cs DOT mun DOT ca>
To: Cygwin Mailing List <cygwin AT sourceware DOT cygnus DOT com>
Subject: gcc and Win32 API
Message-ID: <Pine.OSF.4.21.0010160217480.21132-100000@garfield.cs.mun.ca>
MIME-Version: 1.0

Hello,

I am running Cygwin 1.1.4 and my primary interest in Cygwin is in being
able to compile Win32 programs under a Unix environment using the gcc
compiler if possible. I have the classic book on the Win32 API by Charles
Petzold and have copied down his second example verbatim from Chapter 3.
The program compiled fine under the lcc compiler but when I try with gcc
the linker ld complains about unresolved symbols. I can provide the
exact error message if necessary. All I did to compile my source file
was the following:

gcc hello.c

All the program does is it includes windows.h, defines a window class,
registers it, creates a window of that class, displays it, and enters
a message loop, and the window procedure does not much more than display
a hello world type message in a MessageBox.

So, do I have to provide special compiler flags to gcc. The first example
from Petzold (which does not use window "classes"), compiles fine under
gcc, so what is going on?

Thanks,

Neil


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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