public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Laurent Vaucher <openup01@rd.francetelecom.com>
To: cygwin@cygwin.com
Subject: Re: gcc problem
Date: Tue, 02 Mar 2004 12:53:00 -0000	[thread overview]
Message-ID: <40448008.6050300@rd.francetelecom.com> (raw)
In-Reply-To: <0FFE4E4AF139D311A62C00508B0BE5E801EB9F09@exchange3.villingen.thmulti.com>


>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/

  reply	other threads:[~2004-03-02 12:37 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-02 12:49 Lauer Rainer
2004-03-02 12:53 ` Laurent Vaucher [this message]
2004-03-02 14:56 ` Gerrit P. Haase
2004-03-02 15:57   ` Gareth Pearce
  -- strict thread matches above, loose matches on Subject: below --
2003-09-14 21:00 swa004
2002-03-21  5:39 GCC problem Robert Collins
2002-03-21  5:17 Mike Hayden
2002-03-21  5:26 ` David Starks-Browning
     [not found] <Pine.LNX.4.33.0112142057150.7431-100000@heros.knurow.tpsa. pl>
2001-12-14 11:41 ` Larry Hall (RFK Partners, Inc)
2001-12-14 11:11 gahan
2001-09-06  7:31 gcc problem Peter Buckley
2001-09-06  7:36 ` Larry Hall (RFK Partners, Inc)
2001-09-06  6:45 Peter Buckley
2001-09-06  7:17 ` Dominik Zalewski
2001-09-06  6:41 Dominik Zalewski
2001-07-27 10:14 gcc_Problem Mr.Serkan Gumusbicak
2001-07-27 11:50 ` gcc_Problem Carl Hetherington
2000-08-11 16:12 gcc problem Consequator
2000-08-11 17:22 ` Chris Faylor
2000-08-12  3:37   ` Consequator
1997-10-23  7:26 Frank Packenham
1997-10-20 19:25 Colin Peters
1997-10-21  7:44 ` Steven J. Zeil
1997-10-20  3:21 Frank Packenham
1997-10-20  6:00 ` Fergus Henderson
1997-03-10  4:11 Jon Thackray
1997-03-10  6:04 ` Jim Balter
1997-03-10  6:11   ` Jon Thackray

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=40448008.6050300@rd.francetelecom.com \
    --to=openup01@rd.francetelecom.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).