Static lib won't link
Craig Yoshioka
craigyk at me.com
Thu Mar 18 20:25:08 PDT 2010
Hi,
Does anyone know why I get the following errors when trying to link against the static version of the freeimage library?
Undefined symbols:
"std::_List_node_base::unhook()", referenced from:
IlmThread::(anonymous namespace)::WorkerThread::run()in libfreeimage.a(IlmThreadPool.o)
"std::basic_stringstream<char, std::char_traits<char>, std::allocator<char> >::~basic_stringstream()", referenced from:
Save(FreeImageIO*, FIBITMAP*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Save(FreeImageIO*, FIBITMAP*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Save(FreeImageIO*, FIBITMAP*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Save(FreeImageIO*, FIBITMAP*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Load(FreeImageIO*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Load(FreeImageIO*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Load(FreeImageIO*, void*, int, int, void*)in libfreeimage.a(PluginEXR.o)
Imf::Header::readFrom(Imf::IStream&, int&)in libfreeimage.a(ImfHeader.o)
Imf::Header::operator[](char const*) constin libfreeimage.a(ImfHeader.o)
.... Many thousands of more missing symbol errors...
It's like the static library is dynamically linked, and failing to load the standard c++ library?
I thought a static library would be self-contained...
Thanks,
-Craig
More information about the macports-users
mailing list