[vlc-devel] Compiling custom access module
ipkiss at gmail.com
Thu Nov 15 10:16:54 CET 2007
On Nov 14, 2007 10:17 PM, Mad Mac <madmac2501 at gmail.com> wrote:
> the files compiles ok but when tries to link into one library it
> complains about duplicated symbols. It seems like when compiling
> ignores the dependency guards (#ifndef HAVE_AUXILIARY_H #define
> HAVE_AUX ...) and because of that there is a conflict between
> libraries access.c and auxiliary.c
> What i am doing wrong?
Make sure that what corresponds to your duplicate symbol is not
defined in auxiliary.h. It should only be declared in the file, and
most likely be defined in auxiliary.c.
BTW, include guards (#ifndef...) are useful to avoid many inclusions
of the header for a single compilation unit (a single c file), but
they are not remembered from one compilation unit to another (just
like any other pre-processing directive).
More information about the vlc-devel