libQGLViewer icon indicating copy to clipboard operation
libQGLViewer copied to clipboard

Compilation issue on Visual Studio 16 2019

Open kerautret opened this issue 2 years ago • 6 comments

By testing to use libQqGLViewer on VS 2019, I get this issue. I tried different fix following other operator but no success. I am perhaps missing something.

VRender\Primitive.cpp(121,24): error C2039: '<<': is not a member of 'vrender' [C:\projects\libqglviewer\QGLViewer\qglviewer.vcxproj] 632 C:\projects\libqglviewer\QGLViewer\VRender\Primitive.h(20): message : see declaration of 'vrender' [C:\projects\libqglviewer\QGLViewer\qglviewer.vcxproj] 633 PrimitivePositioning.cpp 634 TopologicalSortMethod.cpp 635 VRender.cpp 636 Vector2.cpp 637 Vector3.cpp 638 1>VRender\Vector3.cpp(111,24): error C2039: '<<': is not a member of 'vrender' [C:\projects\libqglviewer\QGLViewer\qglviewer.vcxproj] 639 C:\projects\libqglviewer\QGLViewer\VRender\NVector3.h(7): message : see declaration of 'vrender' [C:\projects\libqglviewer\QGLViewer\qglviewer.vcxproj]

kerautret avatar Feb 18 '23 15:02 kerautret

if @GillesDebunne have an idea of fix ;)

kerautret avatar Mar 23 '23 09:03 kerautret

From what I understand, this problem only occurs when building with C==14 and/or c++17 option flag? If that's the case, can you update the title accordingly?

I do not have access to a Visual Studio compiler, but I could try to reproduce using gcc with proper options

GillesDebunne avatar Apr 20 '23 20:04 GillesDebunne

I am not sure in fact, we were needed to change the default VC version in appveyor configuration in order to activate C++17 but the target of the C++17 was to compile other lib/tools. So perhaps no link to C++17. (I was letting the default qmake configuration).

kerautret avatar Apr 20 '23 20:04 kerautret

Does https://github.com/GillesDebunne/libQGLViewer/pull/71 this fix the problem?

bjornpiltz avatar May 08 '23 08:05 bjornpiltz

Does #71 this fix the problem?

yes!

DELICATE959 avatar Oct 10 '23 11:10 DELICATE959

Great! #71 has been superseded by #80, which also adds a MSVC2019 build job to the CI.

bjornpiltz avatar Oct 11 '23 21:10 bjornpiltz