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: Wed, 24 Sep 2003 10:38:45 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: Ayamico Hamasaki cc: cygwin AT cygwin DOT com Subject: Re: DDD Compilation Fails using GCC 3.3.1 In-Reply-To: <20030924053314.46352.qmail@web13206.mail.yahoo.com> Message-ID: References: <20030924053314 DOT 46352 DOT qmail AT web13206 DOT mail DOT yahoo DOT com> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Tue, 23 Sep 2003, Ayamico Hamasaki wrote: > Hi, > > I have problem compiling DDD 3.3.7 using gcc 3.3.1. > But if I revert to gcc.3.2.3, the compilation is > successful. > > Anyone has seen the same problem ? I wonder if this is > a gcc or ddd problem. > > ["cygcheck -c" output snipped] Please, please, please do not include cygcheck output inline. It really does screw up the web search. > The error happens during the linking stage. > > .... > g++ -DNDEBUG -O2 -g -W -Wall -trigraphs -o ddd.exe > [snip] > -L/usr/X11R6/lib /usr/X11R6/lib/libXm.a -lXaw -lXmu > -lXt -lXpm -lXp -lXext -lX11 -lSM -lICE -ltermcap -ly > -liberty > AgentM.o(.text+0x296): In function `GLOBAL(int10_t, > long double, char, short, int, double)': > /usr/include/c++/3.3.1/iostream:87: undefined > reference to > `__static_initialization_and_destruction_0(int, int)' Make sure *all* your objects and libraries are compiled by gcc 3.3.1. Some of the above libraries are distributed with Cygwin, and thus are most likely compiled with gcc 3.2. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- 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/