已经在 helpers.obj 中定义
1>正在生成代码...
1>localizer.obj : error LNK2005: "class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> > > > __cdecl normalize(class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> > > >)" (?normalize@@YA?AV?$vector@V?$vector@MV?$allocator@M@std@@@std@@V?$allocator@V?$vector@MV?$allocator@M@std@@@std@@@2@@std@@V12@@Z) 已经在 helpers.obj 中定义
1>localizer.obj : error LNK2005: "class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> > > > __cdecl blur(class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> > > >,float)" (?blur@@YA?AV?$vector@V?$vector@MV?$allocator@M@std@@@std@@V?$allocator@V?$vector@MV?$allocator@M@std@@@std@@@2@@std@@V12@M@Z) 已经在 helpers.obj 中定义
1>localizer.obj : error LNK2005: "bool __cdecl close_enough(class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> > > >,class std::vector<class std::vector<float,class std::allocator<float> >,class std::allocator<class std::vector<float,class std::allocator<float> > > >)" (?close_enough@@YA_NV?$vector@V?$vector@MV?$allocator@M@std@@@std@@V?$allocator@V?$vector@MV?$allocator@M@std@@@std@@@2@@std@@0@Z) 已经在 helpers.obj 中定义
1>localizer.obj : error LNK2005: "bool __cdecl close_enough(float,float)" (?close_enough@@YA_NMM@Z) 已经在 helpers.obj 中定义
参考
error:LNK2005 已经在*.obj中定义的一种情况及解决办法
https://blog.youkuaiyun.com/zhaoyong26/article/details/84635383