Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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: <40448008.6050300@rd.francetelecom.com> Date: Tue, 02 Mar 2004 13:37:28 +0100 From: Laurent Vaucher User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: gcc problem References: <0FFE4E4AF139D311A62C00508B0BE5E801EB9F09 AT exchange3 DOT villingen DOT thmulti DOT com> In-Reply-To: <0FFE4E4AF139D311A62C00508B0BE5E801EB9F09@exchange3.villingen.thmulti.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 02 Mar 2004 12:37:28.0803 (UTC) FILETIME=[1FBDBB30:01C40053] X-IsSubscribed: yes >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 > > Maybe you could just try g++ instead of gcc in the command line to force it to recognize .cc extension as a C++ source file, not some kind of preprocessor input. Laurent. -- 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/