AC25 API Compile Error - ParameterPackTraits.hpp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-08-10
10:15 AM
- last edited on
‎2021-09-14
09:23 AM
by
Noemi Balogh
Rebuild started... 1>------ Rebuild All started: Project: Element_Test, Configuration: Debug x64 ------ 1>Compiling the localized GRC file... 1>Compiling the non-localized GRC file... 1>Compiling the RC2 file... 1>Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 1> 1>Copyright (C) Microsoft Corporation. All rights reserved. 1> 1> 1>APICommon.c 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>PropertyUtils.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Test.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Trim.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Tools.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Tips.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_SolidLink.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Snippets.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Set.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Modify.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Hotlink.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Edit.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Basics.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Element_Batch_Create.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Dumper.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>APISpeedTest.cpp 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): error C2220: the following warning is treated as an error 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(80,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>C:\Software Development\Addon Development\API Development Kit 25.3002\Support\Modules\GSRoot\ParameterPackTraits.hpp(92,23): warning C4499: 'static': an explicit specialization cannot have a storage class (ignored) 1>Generating Code... 1>Done building project "Element_Test.vcxproj" -- FAILED. ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========Only thing I did is edit the MDID (dev+addon id).
I've tried other examples (Attribute_Test), same thing happened
Any ideas on how to fix this?
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-08-10 12:46 PM
It is a known issue, the fix is already under development. Until then, you can work around it by setting the compiler warning level from level 4 (/W4) to level 3 (/W3). It should compile after that.
Regards,
Andras

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-08-10 12:46 PM
It is a known issue, the fix is already under development. Until then, you can work around it by setting the compiler warning level from level 4 (/W4) to level 3 (/W3). It should compile after that.
Regards,
Andras

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-08-10 12:47 PM
You can work around the situation by lowering the "Warning Level", and turn off "Treat Warnings As Errors" in the project settings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2021-08-10 01:18 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2022-09-09 07:54 PM
Also just hit the same thing in vs2019 (in the year 2022). Note that trying to use vs2017 seemed to hit a pragma that only the 2019 build tools are supported. So curious.