delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/31/11:10:01

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
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Mon, 31 Mar 2003 11:09:49 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: Brian Warner <numero_7 AT hotmail DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: undefined reference to ___assert, _impure_ptr, etc.
In-Reply-To: <F72JXSbfq1VPxJS7eCs0001bf6d@hotmail.com>
Message-ID: <Pine.GSO.4.44.0303311108260.21921-100000@slinky.cs.nyu.edu>
Importance: Normal
MIME-Version: 1.0

On Mon, 31 Mar 2003, Brian Warner wrote:

> Hi,
>
> I'm using Cygwin for compiling the Xerces-C library for MinGW. My program
> used the gcc 3.2, and there were no problem, but now I use the gcc 3.2.2 for
> my program, so I need to recompile the Xerces-X library too. But the gcc
> 3.2.2 doesn't exist for Cygwin, so I compiled it with the source on Cygwin,
> with the options --enable-threads=posix --enable-shared
> --enable-languages=c,c++. The compilation seems to be passed very well, but
> now when I want to compile the Xerces-C library, at link time, I've got
> several undefined reference errors such as ___assert, _impure_ptr,
> ___w32_sharedptr_unexpected, etc. Many of these error are related with
> libstdc++.a. And when I look in this file, I see the reference to these
> functions. So where can this problem come from ? Is my gcc 3.2.2 badly
> compiled ? I've seen there is a gcc-mingw, and its configure file is very
> different from "normal" gcc configure file. Have I to compile it with a
> configure file from the gcc-mingw version ?
> Thanks in advance.
>
> Regards,
> Fabrice Louis.

Use "g++" to link C++ programs.  Otherwise, please post the exact compile
and link commands, and read <http://cygwin.com/bugs.html>.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Knowledge is an unending adventure at the edge of uncertainty.
  -- Leto II


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