delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/06/23/19:36:28

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
Message-ID: <BAY105-F17CBD9B2754C24A9D86E5F94EA0@phx.gbl>
X-Originating-Email: [k_akima AT hotmail DOT com]
X-Sender: k_akima AT hotmail DOT com
From: "Kiyoshi Akima" <k_akima AT hotmail DOT com>
To: cygwin AT cygwin DOT com
Subject: standard c++ shared libs?
Date: Thu, 23 Jun 2005 17:36:16 -0600
Mime-Version: 1.0

When I build the hello world program in C++ with printf(), the program 
compiles and strips to 3K.
When I use cout <<, the program balloons to 270K.

Please tell me I'm just missing a switch or three to link with the 
DLL/shared version of the standard C++ library.

I'm compiling like this:
   g++ -o hello -s hello.cc

cygwin1.dll version 1.5.17
g++ version 3.4.4-1
Windows XP Home 5.1 SP2

thx



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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