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");