type_info link errors

J

jahhaj

Lots of people seem to have problems with these, here's my particular
variation.

I'm using a third partly library which I believe was compiled with VC
7.1. I'm using the free version of VC 8 and the Platform SDK for
Windows Server 2003 R2.

When I link my code with the third party library I get the following
link error

xxx.lib(xxx.obj) : error LNK2001: unresolved external symbol
"__declspec(dllimport) public: char const * __thiscall
type_info::name(void)const " (__imp_?name@type_info@@QBEPBDXZ)

where xxx.lib is the third party library.

Both my code and the third party code were compiled with /MD option.

Is there any simple solution to this? Some sort of hack perhaps? Or am
I going to have to get hold of VC++ 7.1?

Thanks in advance,
John
 
V

Vinzenz Feenstra

Hi John,

I presume that they have not enabled the runtime type information
setting, you might try to enable it.
Either it will work, or you will have to ask for a version compiled with
this setting enabled.

Regards,
Vinzenz
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top