openNURBS build issue in vs2019

I tried to build both versions 8.0 and 7.11, and encountered the same error. It builds successfully in 32-bit, but fails in 64-bit. The error is as follows:
|Error|C2220|the following warning is treated as an error|opennurbs_public_staticlib|E:\dev\openNURBS\openNURBS_7.11\opennurbs\opennurbs_material.h|1||

|Error (active)|E0020|identifier ON_2dPoint is undefined|opennurbs_public_staticlib|E:\dev\openNURBS\openNURBS_7.11\opennurbs\opennurbs_array.h|1624||


image

Hi @林北煎包侠,

You can get rid of many warnings by not showing Intellisense messages - just show Build Only.

image

Using Visual Studio 2019, you should be able to open `opennurbs_public.sln’ and build both Debug and release, Win32 and x64 without errors.

If not, can tell me what version of Visual Studio you are using (in Visual Studio, click Help > About Microsoft Visual Studio)?

Also, please run the Visual Studio Installer and export your configuration (Click More > Export Configuation).

Thanks,

– Dale

sorry, I get the same issue, there is the version of my Visual Studio: Microsoft Visual Studio Community 2019
Version 16.11.24
VisualStudio.16.Release/16.11.24+33328.57
Microsoft .NET Framework
Version 4.8.09037

Installed Version: Community

Visual C++ 2019 00435-00000-00000-AA433
Microsoft Visual C++ 2019

ASP.NET and Web Tools 2019 16.11.115.10959
ASP.NET and Web Tools 2019

Azure App Service Tools v3.0.0 16.11.115.10959
Azure App Service Tools v3.0.0

C# Tools 3.11.0-4.22108.8+d9bef045c4362fbcab27ef35daec4e95c8ff47e1
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

GitHub.VisualStudio 2.11.106.19330
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.

Intel® VTune™ Profiler 2022 1.3.2
Intel® VTune™ Profiler 2022, (build 1.3.2), Copyright © 2009-2022 Intel Corporation. All rights reserved.

IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info

Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines

Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers

Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards

Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package

NuGet Package Manager 5.11.2
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/

NVIDIA CUDA 11.8 Wizards 11.8
Wizards to create new NVIDIA CUDA projects and source files.

NVIDIA Nsight Visual Studio Edition 2022.3.0.22245
NVIDIA Nsight Visual Studio Edition provides tools for GPGPU and graphics development. Copyright © NVIDIA 2010 - 2022.
•Direct3D® and DirectX® are registered trademarks of Microsoft Corporation in the United States and/or other countries.
•Microsoft Detours is used under the Professional license (http://research.microsoft.com/en-us/projects/detours/).
•Gardens Point Parser Generator Copyright 2005 Queensland University of Technology (QUT). All rights reserved.
•Icons from Axialis Software used under the licensing terms found here: www.axialis.com
•NLog Copyright © 2004-2006 Jaroslaw Kowalski (jaak@jkowalski.net)
•zlib and libpng used under the zlib/libpnc license (The zlib/libpng License – Open Source Initiative)
•Breakpad Copyright ©2006, Google Inc. All rights reserved.
•The OpenGL Extension Wrangler Library
Copyright ©2008-2016, Nigel Stewart (nigels@users.sourceforge.net), Copyright ©2002-2008, Milan Ikits (milan.ikits@ieee.org), Copyright ©2002-2008, Marcelo E. Magallon (mmagallo@debian.org), Copyright ©2002, Lev Povalahev.
All rights reserved.
•LIBSSH2 Copyright ©2004-2007 Sara Golemon (sarag@libssh2.org), Copyright ©2005,2006 Mikhail Gusarov (dottedmag@dottedmag.net),Copyright ©2006-2007 The Written Word, Inc.,Copyright ©2007 Eli Fant (elifantu@mail.ru),Copyright ©2009-2014 Daniel Stenberg., Copyright ©2008, 2009 Simon Josefsson.
All rights reserved.
•Protobuf Copyright ©2014, Google Inc. All rights reserved.
•xxHASH Library Copyright ©2012-2014, Yann Collet. All rights reserved.
•FMT Copyright ©2012 - 2016, Victor Zverovich
•Font Awesome Copyright 2018 Fonticons, Inc.
•ELF Definitions Copyright (c) 2010 Joseph Koshy, All rights reserved.

Warning: This computer program is protected by copyright law and international treaties. Unauthorized reproduction or distribution of this program, or any portion of it, may result in severe civil and criminal penalties, and will be prosecuted to the maximum extent possible under the law.

NVIDIA Nsight Visual Studio Edition - CUDA support 2022.3.0.22245
NVIDIA Nsight Visual Studio Edition - CUDA support provides tools for CUDA development and debugging.

ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info

Qt Visual Studio Tools 3.0.2
The Qt VS Tools for Visual Studio 2019 allow developers to use the standard development environment without having to worry about any Qt-related build steps or tools.

Test Adapter for Boost.Test 1.0
Enables Visual Studio’s testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.

Test Adapter for Google Test 1.0
Enables Visual Studio’s testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.

TypeScript Tools 16.0.30526.2002
TypeScript Tools for Microsoft Visual Studio

Visual Basic Tools 3.11.0-4.22108.8+d9bef045c4362fbcab27ef35daec4e95c8ff47e1
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.

Visual F# Tools 16.11.0-beta.21514.6+b6c2c4f53ea3a08fa603ea93d6d2f808a62a21d1
Microsoft Visual F# Tools

Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio

Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake



vsconfig.zip (967 Bytes)

Hi @林北煎包侠,

In comparing your .vsconfig file with one I generate on my system, it appears your missing some C++ components that might be the cause of your grief.

Specifically, stuff like this for example:

"Microsoft.VisualStudio.Component.VC.14.29.16.10.x86.x64",
"Microsoft.VisualStudio.Component.VC.14.29.16.10.ATL",
"Microsoft.VisualStudio.Component.VC.14.29.16.10.CLI.Support",
"Microsoft.VisualStudio.Component.VC.14.29.16.10.MFC",

I’ve attached my .vsconfig file for you to review. You can use a tool like WinMerge to view the differences.

dale.vsconfig.zip (1.4 KB)

– Dale