[Top][All Lists]

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

Re: libtool 1.5.8 & Darwin

From: Patrick Huber
Subject: Re: libtool 1.5.8 & Darwin
Date: Thu, 07 Oct 2004 10:56:58 +0200

Dear Peter,

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

You're absolutely right - shame on me.
Besides, thanks for libtool it makes my life much easier.


Dr. Patrick Huber                       Physik-Department T30d
                                        Technische Universitaet Muenchen
Tel.:+49 89/289-12357                   James-Franck-Strasse 
http://www.ph.tum.de/~phuber            D-85748 Garching

reply via email to

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