error LNK2005 int __cdecl 解决方案【转】

error LNK2005: "int __cdecl isPtInPolygon(class std::vector<struct double2,class std::allocator<struct double2> > &,struct double2)" (?isPtInPolygon@@YAHAAV?$vector@Udouble2@@V?$allocator@Udouble2@@@std@@@std@@Udouble2@@@Z) already defined in _GlWidget.obj
1>Debug/StrokeBar.exe : fatal error LNK1169: one or more multiply defined symbols found

 

解决:
在 属性->配置属性->链接器->命令行中添加   /FORCE:MULTIPLE

(引自:http://hi.baidu.com/hybest/blog/item/65fe8582605fe09bf703a630.html)

你可能感兴趣的:(vector,struct,Class)