编译Viewer时报错
tomicfish opened this issue · comments
环境:
win10 x64
vs2017
Qt5.12.3
在编译到Viewer的时候报以下两个错误:
3>D:\msnhNet\Msnhnet-master\viewer\mainwindow.cpp(368): error C2653: “ReductionType”: 不是类或命名空间名称
3>D:\msnhNet\Msnhnet-master\viewer\mainwindow.cpp(368): error C2065: “REDUCTION_SUM”: 未声明的标识符
不加编译Viewer选项时候整个工程已经编译通过,并通过测试。
我把mainwindow.cpp报错地方ReductionType::REDUCTION_SUM改成Msnhnet::ReductionType::REDUCTION_SUM后,
出现更多的报错,
3>MsnhNetwork.obj : error LNK2001: 无法解析的外部符号 "public: static bool Msnhnet::MemoryManager::memAlign" (?memAlign@MemoryManager@Msnhnet@@2_NA)
3>MsnhSliceLayer.obj : error LNK2001: 无法解析的外部符号 "public: static bool Msnhnet::MemoryManager::memAlign" (?memAlign@MemoryManager@Msnhnet@@2_NA)
3>MsnhYoloLayer.obj : error LNK2001: 无法解析的外部符号 "public: static bool Msnhnet::MemoryManager::memAlign" (?memAlign@MemoryManager@Msnhnet@@2_NA)
3>MsnhYoloOutLayer.obj : error LNK2001: 无法解析的外部符号 "public: static bool Msnhnet::MemoryManager::memAlign" (?memAlign@MemoryManager@Msnhnet@@2_NA)
....
想请教下是什么地方我操作有问题。
大牛已更新代码,问题已解决,感谢大牛。