delorie.com/archives/browse.cgi | search |
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 |
Date: | Tue, 2 Mar 2004 14:23:32 +0100 |
From: | "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de> |
Reply-To: | "Gerrit P. Haase" <freeweb AT nyckelpiga DOT de> |
Organization: | Esse keine toten Tiere |
Message-ID: | <1591625311494.20040302142332@familiehaase.de> |
To: | Lauer Rainer <rainer DOT lauer AT thomson DOT net> |
CC: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>, |
"'lauerr AT gmx DOT net'" <lauerr AT gmx DOT net> | |
Subject: | Re: gcc problem |
In-Reply-To: | <0FFE4E4AF139D311A62C00508B0BE5E801EB9F09@exchange3.villingen.thmulti.com> |
References: | <0FFE4E4AF139D311A62C00508B0BE5E801EB9F09 AT exchange3 DOT villingen DOT thmulti DOT com> |
MIME-Version: | 1.0 |
Hello Rainer, you wrote: > I've installed the latest version of cygwin (as of today 2.03.04). My PC is > running Windows 2000 with service pack 4. Installation is done on my loca > drive d:. I tried a small "C++" and failed, the reason is totally unclear to > me. > The program is: [...] > The error message is: > $ gcc -o gtest gtest.cc > /cygdrive/c/DOCUME~1/lauerr/LOCALS~1/Temp/ccCmpxzX.o(.text+0x4d):gtest.cc: > undefined reference to `std::ios_base::Init::Init[in-charge]()' > /cygdrive/c/DOCUME~1/lauerr/LOCALS~1/Temp/ccCmpxzX.o(.text+0x68):gtest.cc: > undefined reference to `std::ios_base::Init::~Init [in-charge]()' > collect2: ld returned 1 exit status g++ is in a separate package named gcc-g++, be sure you have installed this too. Then you need to link against libstdc++ when using gcc as driver: gcc -o gtest gtest.cc -lstdc++ or you use g++ as driver which includes libstdc++ automatically: g++ -o gtest gtest.cc HTH, Gerrit -- =^..^= http://nyckelpiga.de/donate.html -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |