Multiple definition of .../std/regex.d.912_ModuleInfoZ

André andre at s-e-a-p.de
Mon Mar 5 07:38:05 PST 2012


Am 04.03.2012 16:27, schrieb Dmitry Olshansky:
> On 04.03.2012 14:49, André wrote:
>> Hi,
>>
>> I have a project compiled as libary and a seccond example project using
>> this library. The library is compiled without errors.
>
> As it's a linker error I'd recommend checking that phobos and library
> are built using the same compiler. Basically recompile and update phobos
> library, then do clean rebuild of your lib.
>>
>> 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é
>>


Hi Dmitry,
thanks for the help.
I found out, the compiler/linker parameter for the library project were
wrong and caused the error while linking the example project.

Kind regards
André




More information about the Digitalmars-d-learn mailing list