Linker error with one particular function
Gary Willoughby
dev at nomad.so
Fri Aug 16 02:52:51 PDT 2013
On Thursday, 15 August 2013 at 18:54:40 UTC, Jesse Phillips wrote:
> I don't have an answer, but in case you are not familiar with
> cryptic linker:
>
> On Wednesday, 14 August 2013 at 13:21:49 UTC, Gary Willoughby
> wrote:
>> But when i import it and use the getUnixTime function i get
>> the following linker error:
>>
>> Undefined symbols for architecture x86_64:
>
> The linker is complaining specifically about 64bit, this likely
> means it found this symbol in 32bit.
>
>> "_D6common4test4unit8datetime12__ModuleInfoZ", referenced
>> from:
>
> It is looking for a unit test within datetime.
>
>> _D5logic25generalstatisticprocessor12__ModuleInfoZ in
>> main.o
>> _D5logic14eventprocessor12__ModuleInfoZ in main.o
>> _D5logic24devicestatisticprocessor12__ModuleInfoZ in
>> main.o
>> ld: symbol(s) not found for architecture x86_64
>> collect2: ld returned 1 exit status
>
> Repeating original complaint.
>
> I would expect removing -unittest from the command line will
> fix this error. But I don't know why it is trying to pull in
> Phobos unittests.
You might be onto something here as i only import this module
into unit tests. When i get time i'll investigate a little
further.
More information about the Digitalmars-d-learn
mailing list