[vtkusers] link error with vtksys

Thibaut BARDYN Thibaut.BARDYN at amplitude-ortho.com
Thu Sep 22 10:15:44 EDT 2011


Hi.

I tried compiling a Qt program with VTK and ended up with the following compilation error :
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegCloseKey at 4 referenced in function "public: static bool __cdecl vtksys::SystemTools::ReadRegistryValue(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,enum vtksys::SystemTools::KeyWOW64)" (?ReadRegistryValue at SystemTools@vtksys@@SA_NPBDAAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@W4KeyWOW64 at 12@@Z)
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegQueryValueExA at 24 referenced in function "public: static bool __cdecl vtksys::SystemTools::ReadRegistryValue(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,enum vtksys::SystemTools::KeyWOW64)" (?ReadRegistryValue at SystemTools@vtksys@@SA_NPBDAAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@W4KeyWOW64 at 12@@Z)
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegOpenKeyExA at 20 referenced in function "public: static bool __cdecl vtksys::SystemTools::ReadRegistryValue(char const *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > &,enum vtksys::SystemTools::KeyWOW64)" (?ReadRegistryValue at SystemTools@vtksys@@SA_NPBDAAV?$basic_string at DU?$char_traits at D@std@@V?$allocator at D@2@@std@@W4KeyWOW64 at 12@@Z)
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegSetValueExA at 24 referenced in function "public: static bool __cdecl vtksys::SystemTools::WriteRegistryValue(char const *,char const *,enum vtksys::SystemTools::KeyWOW64)" (?WriteRegistryValue at SystemTools@vtksys@@SA_NPBD0W4KeyWOW64 at 12@@Z)
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegCreateKeyExA at 36 referenced in function "public: static bool __cdecl vtksys::SystemTools::WriteRegistryValue(char const *,char const *,enum vtksys::SystemTools::KeyWOW64)" (?WriteRegistryValue at SystemTools@vtksys@@SA_NPBD0W4KeyWOW64 at 12@@Z)
vtksys.lib(SystemTools.obj) : error LNK2019: unresolved external symbol __imp__RegDeleteValueA at 8 referenced in function "public: static bool __cdecl vtksys::SystemTools::DeleteRegistryValue(char const *,enum vtksys::SystemTools::KeyWOW64)" (?DeleteRegistryValue at SystemTools@vtksys@@SA_NPBDW4KeyWOW64 at 12@@Z)
debug\planningIMAGE.exe : fatal error LNK1120: 6 unresolved externals

And I just cannot find anyway around it. Anyone would have a clue ?

Thibaut BARDYN

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110922/99d20672/attachment.htm>


More information about the vtkusers mailing list