[Ecls-list] ECL_API redefinition warning

Juan Jose Garcia-Ripoll juanjose.garciaripoll at googlemail.com
Sat Jun 21 18:01:03 UTC 2008


On Sat, Jun 21, 2008 at 12:52 AM, Erik Huelsmann <ehuels at gmail.com> wrote:
> When updating and compiling (Linux Debian Etch) just a minute ago, I
> get lots of these:

They are completely harmless.

For the record, ECL has to be compiled in two passes. The first one
builds the libeclmin.a files so that functions call each other with
fixed addresses. The second part uses a version of external.h where
ECL_API is defined so that code know the ECL functions belong to a
shared library.

There is an #ifdef statement in ecl.h in which the right definition
for ECL_API is chosen, depending on whether the code is built with
-DECL_API or not (this marks the different passes). Apparently, a
statement #undef, prior to the redefinition of ECL_API, is ignored by
the compiler, causing this warning.

But, as I said, it is harmless.

Juanjo

-- 
Facultad de Fisicas, Universidad Complutense,
Ciudad Universitaria s/n Madrid 28040 (Spain)
http://juanjose.garciaripoll.googlepages.com




More information about the ecl-devel mailing list