C++ 中 使用vtkGDCMImageReader.h遇到的unresolved external symbol错误解决办法

1. 错误信息一

2>gdcmMSFF.lib(gdcmUIDGenerator.obj) : error LNK2019: unresolved external symbol __imp__UuidCreate@4 referenced in function "protected: static bool __cdecl gdcm::UIDGenerator::GenerateUUID(unsigned char *)" (?GenerateUUID@UIDGenerator@gdcm@@KA_NPAE@Z)

解决方法 需要在hear文件中加入如下lib:

#pragma comment(lib,"rpcrt4.lib");

#pragma comment(lib,"WS2_32.lib");

 

posted on 2012-11-22 11:08  |残阳|露  阅读(1171)  评论(1编辑  收藏  举报

导航