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 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 Reply-To: cygwin AT cygwin DOT com To: Brian Warner cc: cygwin AT cygwin DOT com Subject: Re: undefined reference to ___assert, _impure_ptr, etc. In-Reply-To: Message-ID: Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 . 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/