It is currently Sat Aug 08, 2020 9:23 pm


All times are UTC




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Error link 2005: help!
PostPosted: Wed Jun 15, 2011 12:54 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
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!


Top
Offline Profile  
Reply with quote  
 Post subject: Re: Error link 2005: help!
PostPosted: Wed Jun 15, 2011 3:03 am 

Joined: Fri Sep 10, 2010 5:38 am
Posts: 30
problem solved. I updated to the new version. No more errors.


Top
Offline Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Theme created StylerBB.net