LNK2019 when linking against a static library.
Hi, dunno if I should post this in C++ or Windows Programming. But here goes. I've got a problem here that bugs me. I'm trying to link a static library to my dll / dynamic library (which in turn will be linked to my application). But I've got all these LNK2019 errors all over the place. This usually happens when I didn't include a .lib file or the .lib file doesn't have the exported symbols, right? Well, the problem is I did link the correct .lib file and after I read MSDN, I tried using dumpbin with /EXPORTS and /SYMBOLS and guess what, the symbols are there. I'll show you one of the errors:
And this is from the dumpbin:
1>bullet_pal.obj : error LNK2001: unresolved external symbol "public: virtual void __thiscall btCollisionShape::getBoundingSphere(class btVector3 &,float &)const " (?getBoundingSphere@btCollisionShape@@UBEXAAVbtVector3@@AAM@Z)
So, maybe there is another cause for this error. But I can't figure out what it is. Can you guys help me please? I'm so lost right now. Thanks a lot in advance.
272 00000000 UNDEF notype () External | ?getBoundingSphere@btCollisionShape@@UBEXAAVbtVector3@@AAN@Z (public: virtual void __thiscall btCollisionShape::getBoundingSphere(class btVector3 &,double &)const )
EDIT: The title is slightly wrong. Not just LNK2019 but LNK2001 and LNK2019. My Bad... :P