Linker error with one particular function
Jesse Phillips
Jesse.K.Phillips+D at gmail.com
Thu Aug 15 11:54:39 PDT 2013
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.
More information about the Digitalmars-d-learn
mailing list