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

Compilation issue on Visual Studio 16 2019 #67

Open
kerautret opened this issue Feb 18, 2023 · 6 comments
Open

Compilation issue on Visual Studio 16 2019 #67

kerautret opened this issue Feb 18, 2023 · 6 comments

Comments

@kerautret
Copy link
Contributor

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
Copy link
Contributor Author

if @GillesDebunne have an idea of fix ;)

@GillesDebunne
Copy link
Owner

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

@kerautret
Copy link
Contributor Author

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).

@bjornpiltz
Copy link

Does #71 this fix the problem?

@DELICATE959
Copy link

Does #71 this fix the problem?

yes!

@bjornpiltz
Copy link

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

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

4 participants