Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vs2015 compile error #232

Open
wanghuangang opened this issue Feb 2, 2024 · 0 comments
Open

vs2015 compile error #232

wanghuangang opened this issue Feb 2, 2024 · 0 comments

Comments

@wanghuangang
Copy link

wanghuangang commented Feb 2, 2024

ver: vcglib-2023.12

//test code
#include
#include<vcg/complex/complex.h>
#include <wrap/io_trimesh/import_ply.h>
using namespace vcg;

class MyEdge;
class MyFace;
class MyVertex;
struct MyUsedTypes : public UsedTypes< Use::AsVertexType, Use::AsFaceType>{};

class MyVertex : public Vertex< MyUsedTypes, vertex::Coord3f, vertex::BitFlags >{};
class MyFace : public Face < MyUsedTypes, face::VertexRef, face::FFAdj, face::WedgeTexCoord2f, face::Mark, face::BitFlags > {};
class MyMesh : public tri::TriMesh< std::vector, std::vector >{};
int main() {
MyMesh m,tm;
tri::io::ImporterPLY::Open(m,"../../meshes/bunny10k_textured.ply");
std::cout << "Hello, World!" << std::endl;

return 0;

}

compile error :
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): warning C4346: 'vcg::Shot<S,RotationType>::ReferenceFrame': dependent name is not a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): note: prefix with 'typename' to indicate a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(163): note: see reference to class template instantiation 'vcg::Shot<S,RotationType>::ReferenceFrame' being compiled
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): error C2061: syntax error: identifier 'ReferenceFrame'
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(157): error C2805: binary 'operator ==' has too few parameters
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): warning C4346: 'vcg::Shot<S,RotationType>::ReferenceFrame': dependent name is not a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): note: prefix with 'typename' to indicate a type
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): error C2061: syntax error: identifier 'ReferenceFrame'
D:\thirdcode\vcglib-2023.12\vcglib-2023.12\vcg/math/shot.h(158): error C2805: binary 'operator !=' has too few parameters

vs2015 compile error;
but vs2019 complile sucess;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant