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

build error, most related to ArrayKernel #109

Open
mxgbs opened this issue Dec 4, 2017 · 1 comment
Open

build error, most related to ArrayKernel #109

mxgbs opened this issue Dec 4, 2017 · 1 comment
Assignees
Labels

Comments

@mxgbs
Copy link

mxgbs commented Dec 4, 2017

Hi,

I got following error when try to build Opt. My platform is VS2015, 64bits, windows10. It seems that most errors are associated with ArrayKernel. Another one is re-definition error in Opt.h(10): error C2011: 'Opt_InitializationParameters': 'struct' type redefinition. Do you have any idea how to solve that? Thank you.

1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(86): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'bool (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(86): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(86): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'size_t (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(86): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(87): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'bool (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(87): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(87): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'size_t (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(87): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(88): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'bool (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(88): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(88): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'size_t (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(88): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(89): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'bool (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(89): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(89): error C2440: 'specialization': cannot convert from 'overloaded-function' to 'size_t (__cdecl OpenMesh::ArrayKernel::* )(void) const'
1> C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(89): note: None of the functions with this name in scope match the target type
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(397): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Users\dengya\Documents\Optlang\Opt\examples\external\OpenMesh\include\OpenMesh/Core/Mesh/PolyConnectivity.hh(397): warning C4091: ' ': ignored on left of 'const int' when no variable is declared
1>C:\Users\dengya\Documents\Optlang\Opt\API\release\include\Opt.h(10): error C2011: 'Opt_InitializationParameters': 'struct' type redefinition
1> c:\users\dengya\documents\optlang\opt\examples\shared\Opt.h(28): note: see declaration of 'Opt_InitializationParameters

@Mx7f
Copy link
Collaborator

Mx7f commented Dec 14, 2017

The binary we distribute with OpenMesh is compiled using VS2013, other versions (like 2015) may not work and you'll need to compile it yourself, like in #105.

@Mx7f Mx7f self-assigned this Dec 14, 2017
@Mx7f Mx7f added the question label Dec 14, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants