The problem seems to be introduced by the -fguiding-decls option,
which shouldn’t be used (note especially the last paragraph)
-fguiding-decls
Treat a function declaration with the same type as a potential function
template instantiation as though it declares that instantiation, not a
normal function. If a definition is given for the function later in the
translation unit (or another translation unit if the target supports
weak symbols), that definition will be used; otherwise the template will
be instantiated. This behavior reflects the C++ language prior to
September 1996, when guiding declarations were removed.
This option implies -fname-mangling-version-0, and will not work with
other name mangling versions. Like all options that change the ABI, all
C++ code, including libgcc.a must be built with the same setting of this
option.
Armin Steinhoff <a-steinhoff@web_.de> wrote:
Hi,
any idea where I can find the second definition of ‘use_facet’ ??
The problem seems to be introduced by the -fguiding-decls option,
which shouldn’t be used (note especially the last paragraph)
Yes it is the case … I have removed that option and all is working.
Thanks a lot for your help.
Armin
-fguiding-decls
Treat a function declaration with the same type as a potential function
template instantiation as though it declares that instantiation, not a
normal function. If a definition is given for the function later in the
translation unit (or another translation unit if the target supports
weak symbols), that definition will be used; otherwise the template will
be instantiated. This behavior reflects the C++ language prior to
September 1996, when guiding declarations were removed.
This option implies -fname-mangling-version-0, and will not work with
other name mangling versions. Like all options that change the ABI, all
C++ code, including libgcc.a must be built with the same setting of this
option.
Armin Steinhoff <a-steinhoff@web_.de> wrote:
Hi,
any idea where I can find the second definition of ‘use_facet’ ??