delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/10/29/06:59:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
From: "Dockeen" <dockeen AT mchsi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Re: Problem compiling cpp programs with gcc-3.2-1
Date: Tue, 29 Oct 2002 05:57:08 -0600
Message-ID: <NCBBLKKJGBJOLDFMCKFPMEAECBAA.dockeen@mchsi.com>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000

> gcc -O2 -mno-cygwin -mwindows short.cpp  \
> -lkernel32 -luser32 -lgdi32 -lwinspool \
> -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 \
> anv.res -o short

Note also that if you are going to compile a C++ program, you should use
g++, not gcc as your above.  Among other things it links in the standard
library wherein things such as new and cout etc are found.

Wayne Keen

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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