linker error in template instance

  • Thread starter Thread starter antani
  • Start date Start date
A

antani

When I add to my code this line

vcg::tri::io::Importer<CMesh>::Open(mesh,"mesh.ply");

I get a linker error.
Please help me.

I tested a qt empty project with only main function.
I added the incriminate line of code and work correctly.

mi error LNK2019: unresolved external symbol "private: void __thiscall
vcg::ply::PlyFile::compile(class vcg::ply::PlyElement *)" (?
compile@PlyFile@ply@vcg@@AAEXPAVPlyElement@23@@Z) referenced in
function "public: void __thiscall
vcg::ply::PlyFile::SetCurElement(int)" (?
SetCurElement@PlyFile@ply@vcg@@QAEXH@Z)
 
antani ha scritto:
When I add to my code this line

vcg::tri::io::Importer<CMesh>::Open(mesh,"mesh.ply");

I get a linker error.
Please help me.

I tested a qt empty project with only main function.
I added the incriminate line of code and work correctly.

I'm sorry the code doesn't work with minimal qt application and report
itself linker error.
Please help me!
 
Back
Top