Volumes Of Fun
http://www.volumesoffun.com/phpBB3/

Error link 2005: help!
http://www.volumesoffun.com/phpBB3/viewtopic.php?f=14&t=225
Page 1 of 1

Author:  pumpkin_zch2u [ Wed Jun 15, 2011 12:54 am ]
Post subject:  Error link 2005: help!

I am using VC++ 2010 and Polyvox to do my project. before adding MeshDecimator class, everything is OK. After including the .h file and to do the mesh decimating thing, Linking errors occur as below:
Code:
1>CarvingMainLoop.obj : error LNK2005: "private: void __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::fillInitialVertexMetadata(class std::vector<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::InitialVertexMetadata,class std::allocator<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::InitialVertexMetadata> > &)" (?fillInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@AAEXAAV?$vector@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@V?$allocator@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@@std@@@std@@@Z) already defined in CarvingFrameListener.obj
1>CarvingMainLoop.obj : error LNK2005: "private: void __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::fillInitialVertexMetadata(class std::vector<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::InitialVertexMetadata,class std::allocator<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::InitialVertexMetadata> > &)" (?fillInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@AAEXAAV?$vector@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@V?$allocator@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@@std@@@std@@@Z) already defined in CarvingFrameListener.obj
1>CarvingMainLoop.obj : error LNK2005: "private: bool __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::canCollapseNormalEdge(unsigned int,unsigned int)" (?canCollapseNormalEdge@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@AAE_NII@Z) already defined in CarvingFrameListener.obj
1>CarvingMainLoop.obj : error LNK2005: "private: bool __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::canCollapseNormalEdge(unsigned int,unsigned int)" (?canCollapseNormalEdge@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@AAE_NII@Z) already defined in CarvingFrameListener.obj
1>main.obj : error LNK2005: "private: void __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::fillInitialVertexMetadata(class std::vector<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::InitialVertexMetadata,class std::allocator<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::InitialVertexMetadata> > &)" (?fillInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@AAEXAAV?$vector@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@V?$allocator@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@@std@@@std@@@Z) already defined in CarvingFrameListener.obj
1>main.obj : error LNK2005: "private: void __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::fillInitialVertexMetadata(class std::vector<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::InitialVertexMetadata,class std::allocator<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::InitialVertexMetadata> > &)" (?fillInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@AAEXAAV?$vector@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@V?$allocator@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@@std@@@std@@@Z) already defined in CarvingFrameListener.obj
1>main.obj : error LNK2005: "private: bool __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::canCollapseNormalEdge(unsigned int,unsigned int)" (?canCollapseNormalEdge@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@AAE_NII@Z) already defined in CarvingFrameListener.obj
1>main.obj : error LNK2005: "private: bool __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::canCollapseNormalEdge(unsigned int,unsigned int)" (?canCollapseNormalEdge@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@AAE_NII@Z) already defined in CarvingFrameListener.obj
1>VolumeStone.obj : error LNK2005: "private: void __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::fillInitialVertexMetadata(class std::vector<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::InitialVertexMetadata,class std::allocator<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::InitialVertexMetadata> > &)" (?fillInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@AAEXAAV?$vector@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@V?$allocator@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@@std@@@std@@@Z) already defined in CarvingFrameListener.obj
1>VolumeStone.obj : error LNK2005: "private: void __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::fillInitialVertexMetadata(class std::vector<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::InitialVertexMetadata,class std::allocator<struct PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::InitialVertexMetadata> > &)" (?fillInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@AAEXAAV?$vector@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@V?$allocator@UInitialVertexMetadata@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@@std@@@std@@@Z) already defined in CarvingFrameListener.obj
1>VolumeStone.obj : error LNK2005: "private: bool __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterialNormal>::canCollapseNormalEdge(unsigned int,unsigned int)" (?canCollapseNormalEdge@?$MeshDecimator@VPositionMaterialNormal@PolyVox@@@PolyVox@@AAE_NII@Z) already defined in CarvingFrameListener.obj
1>VolumeStone.obj : error LNK2005: "private: bool __thiscall PolyVox::MeshDecimator<class PolyVox::PositionMaterial>::canCollapseNormalEdge(unsigned int,unsigned int)" (?canCollapseNormalEdge@?$MeshDecimator@VPositionMaterial@PolyVox@@@PolyVox@@AAE_NII@Z) already defined in CarvingFrameListener.obj
1>bin\Debug\\Carving.exe : fatal error LNK1169: one or more multiply defined symbols found

how to solve the problem? it has been bothering me for almost a day!

Author:  pumpkin_zch2u [ Wed Jun 15, 2011 3:03 am ]
Post subject:  Re: Error link 2005: help!

problem solved. I updated to the new version. No more errors.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/