Building libraries on Linux
Sean Kelly
sean at f4.ca
Fri Mar 3 18:00:22 PST 2006
This one is a tad weird and I'm hoping someone can explain it to me.
When I try to build a library on Linux (Ares) and then link against that
library, I get a bunch of link errors saying "undefined reference to
'_ModuleInfo_3std1c6string'" and so on. It appears this problem goes
away if empty unittest blocks are added to all modules currently lacking
unit tests, but this seems an odd fix. I've tried building the library
with a variety of switches for 'ar' but still see the problem. Am I
doing something wrong, or is this a DMD bug? I can't find any
significant differences in how my library is being built compared to how
Phobos is built. Does it actually matter that libphobos.a is built as a
demendency of unittest.d?
Sean
More information about the Digitalmars-d-bugs
mailing list