Multiple definition of .../std/regex.d.912_ModuleInfoZ
André
andre at s-e-a-p.de
Sun Mar 4 02:49:41 PST 2012
Hi,
I have a project compiled as libary and a seccond example project using
this library. The library is compiled without errors.
The example project has 1 main module with an empty main function and
imports two modules of the library.
The errors following is given back from the compiler. If comment one
of the two import statements, then it is working.
I know there is no error in /std/regex.d. I do not even use this module.
But how to find out the root cause of this issue?
Kind regards
André
dmd -c "main.d" -of"..proj_dir../F/FExample/FExample/obj/Debug/main.o"
-I"/usr/include/d/dmd/phobos" -I"/usr/include/d/dmd/druntime/import"
-I"/usr/include/d/dmd/gtkd" -I"..proj_dir../F/FEngine/FEngine" -gc -debug
dmd -gc -debug -of"..proj_dir../F/FExample/FExample/bin/Debug/FExample"
"obj/Debug/main.o" "/usr/lib/libphobos2.a"
-L"..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a" -L-lgtkd -L-ldl
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13a4.o):(.data+0x0):
multiple definition of
`_D39/usr/include/d/dmd/phobos/std/regex.d.912__ModuleInfoZ'
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13d8.o):(.data+0x0):
first defined here
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13a4.o): In
function `_D39/usr/include/d/dmd/phobos/std/regex.d.97__arrayZ':
(.text._D39/usr/include/d/dmd/phobos/std/regex.d.97__arrayZ+0x0):
multiple definition of
`_D39/usr/include/d/dmd/phobos/std/regex.d.97__arrayZ'
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13d8.o):(.text._D39/usr/include/d/dmd/phobos/std/regex.d.97__arrayZ+0x0):
first defined here
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13a4.o): In
function `_D39/usr/include/d/dmd/phobos/std/regex.d.98__ass--- errorlevel 1
ertFiZv':
(.text._D39/usr/include/d/dmd/phobos/std/regex.d.98__assertFiZv+0x0):
multiple definition of
`_D39/usr/include/d/dmd/phobos/std/regex.d.98__assertFiZv'
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13d8.o):(.text._D39/usr/include/d/dmd/phobos/std/regex.d.98__assertFiZv+0x0):
first defined here
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13a4.o): In
function `_D39/usr/include/d/dmd/phobos/std/regex.d.915__unittest_failFiZv':
(.text._D39/usr/include/d/dmd/phobos/std/regex.d.915__unittest_failFiZv+0x0):
multiple definition of
`_D39/usr/include/d/dmd/phobos/std/regex.d.915__unittest_failFiZv'
..proj_dir../F/FEngine/FEngine/bin/Debug/FEngine.a(regex_9_13d8.o):(.text._D39/usr/include/d/dmd/phobos/std/regex.d.915__unittest_failFiZv+0x0):
first defined here
collect2: ld gab 1 als Ende-Status zurück
Exit code 1
More information about the Digitalmars-d-learn
mailing list