ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem linking DDD under cygwin


From: Andrew Gaylard
Subject: Re: Problem linking DDD under cygwin
Date: Tue, 14 Oct 2003 20:08:34 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Hi Michael,

Michael Ambrus wrote:
Hi Steve, Mathias & Andy,
I found your conversations at
http://mail.gnu.org/archive/html/ddd/2003-10/msg00018.html

I'm not a subscriber to this particular list and I couldn't find a way of
posting this message without subscribing, so please pardon me for writing
you directly.

No problem!

Though I didn't recognize the particular problem  that Seve encountered I
followed his steps and finally managed to build the package. And yes - it
seems to work (without command line issue), and yes - it is large (16M), and
yes - it was built without libipc (-lipc).

OK,  I've commented out the ipc library stuff in configure.ac,
so it should not appear in future releases.  This will help DDD to
build on Cygwin.  DDD-3.3.8 will be released soon.

bash-2.05b$ ls -aldh /usr/local/bin/ddd.exe
-rwxr-xr-x    1 mickey   None          16M Oct 13 20:37
/usr/local/bin/ddd.exe
bash-2.05b$

However, I did note some things that could explain Mathias original problem
description. After examining the following references, it seemed worth
trying to back-grade gcc to an earlier version (gcc-3.2.3). From the build
output Mathias sent, I could see that he also built with the newest gcc
version.

http://www.mail-archive.com/address@hidden/msg28965.html
http://gcc.gnu.org/onlinedocs/gcc-3.3.1/gcc/C---Interface.html#C++%20Interfa
ce

This worked!

I'm only guessing here, but it seems that the #pragma interface/ #pragma
implementation are not binary compatible pre and post gcc-3.3. Furthermore
I'm guessing that all libs in the Cygwin feeds are not consistently built
(with the same gcc version). This could explain why "undefined reference to
`__static_initialization_and_destruction_0(int, int)"  happens. (This was
also my original problem - and possibly the only problem
>
So to summarize - try this:
* Upgrade your Cygwin installation (all of it)
* Except gcc, which should be the next but newest (gcc-3.2.3)

Good luck and please post a note on the list (if this works) for everyone
that encounters the same problem. I any case, please let me know if any of
this helped.

Thanks for your analysis of the problem.  I'm sure that this will help
all the Cygwin users out there.

Michael Ambrus
Real-time & embedded Software Specialist


Andrew.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]