[tex-k] Kpathsea-DLL via MinGW: multiple definition 'getopt_long_only'

Karl Berry karl at freefriends.org
Sat Aug 24 00:12:51 CEST 2013


    d:/mingw/bin/../lib/gcc/mingw32/4.7.2/../../../libmingwex.a(getopt.o):getopt.c:(.text+0xc20): 
    multiple definition of `getopt_long_only'
    ./.libs/libkpathsea.dll.a(d000021.o):(.text+0x0): first defined here

I haven't tried it, but looking at getopt1.c and getopt.c, if you
recompile those files with -DELIDE_CODE (or edit the sources to #define
that symbol), all the actual code should be omitted.  Of course, let's
hope that the mingw getopt is compatible enough that things don't blow
up when the programs try to parse their options.

Shared kpathsea is not supported and not (by me) recommended.

Hope this helps,
karl


More information about the tex-k mailing list