bug-libtool
[Top][All Lists]
Advanced

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

Re: libtool 1.5.8 & Darwin


From: Peter O'Gorman
Subject: Re: libtool 1.5.8 & Darwin
Date: Thu, 07 Oct 2004 11:48:37 +0900
User-agent: Mozilla Thunderbird 0.7.3 (Macintosh/20040803)

Patrick Huber wrote:

Hi,

I am not sure wether the problem I encountered isn't already fixed in
some
later version of libtool, but I haven't found anything conclusive in the
ChangeLogs
yet... I would be glad for a corresponding hint.


While these errors look similar to an old problem with libtool-1.4.x where convenience libraries were added to the link line twice, that is not the case here.

This is a problem with your source, not with libtool. My best guess is that you are defining something in a header and including that header in multiple source files. Header files are for declarations, not definitions. Do not put "int foo;" in foo.h and then #include "foo.h" in both foo.c and bar.c, you'll get multiple defintions problems if foo.c and bar.c are intended to be part of the same library. Use the extern keyword and then put the definition in one of the source files.

Hope this helps,
Peter
--
Peter O'Gorman - http://www.pogma.com




reply via email to

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