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

Compile Error Visual Studio 2017: already been declared as a non-class template #468

Open
trittsv opened this issue Feb 1, 2024 · 0 comments

Comments

@trittsv
Copy link
Contributor

trittsv commented Feb 1, 2024

Hi,

i am trying to compile the current master 2024-02-01 but end up in a compile error.
Using: CycloneDDS: 1c9bc19, CycloneDDS-CXX: e41e5c8

It is successful on vs2019, vs2022, gcc
But on Visual Studio 2017 there is the following compile error:
src/ddscxx/include/org/eclipse/cyclonedds/topic/datatopic.hpp(653): error C2989: 'ddsi_serdata': class template has already been declared as a non-class template
src/ddscxx/include/org/eclipse/cyclonedds/topic/datatopic.hpp(652): error C3857: 'serdata_from_loaned_sample': multiple template parameter lists are not allowed

[2024-02-01T08:36:08.944Z] Configuration:
[2024-02-01T08:36:08.944Z] [settings]
[2024-02-01T08:36:08.944Z] arch=x86_64
[2024-02-01T08:36:08.944Z] build_type=RelWithDebInfo
[2024-02-01T08:36:08.944Z] compiler=Visual Studio
[2024-02-01T08:36:08.944Z] compiler.runtime=MD
[2024-02-01T08:36:08.944Z] compiler.version=15
[2024-02-01T08:36:08.944Z] os=Windows
[2024-02-01T08:36:12.131Z] cyclonedds_cxx/20240201@jenkins/stable: Calling build()
[2024-02-01T08:36:18.692Z] -- The C compiler identification is MSVC 19.16.27034.0
[2024-02-01T08:36:18.955Z] -- The CXX compiler identification is MSVC 19.16.27034.0
[2024-02-01T08:36:19.214Z] -- Detecting C compiler ABI info
[2024-02-01T08:36:20.590Z] -- Detecting C compiler ABI info - done
[2024-02-01T08:36:20.590Z] -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
[2024-02-01T08:36:20.590Z] -- Detecting C compile features
[2024-02-01T08:36:20.590Z] -- Detecting C compile features - done
[2024-02-01T08:36:20.590Z] -- Detecting CXX compiler ABI info
[2024-02-01T08:36:21.968Z] -- Detecting CXX compiler ABI info - done
[2024-02-01T08:36:21.968Z] -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe - skipped
[2024-02-01T08:36:21.968Z] -- Detecting CXX compile features
[2024-02-01T08:36:21.968Z] -- Detecting CXX compile features - done
[2024-02-01T08:36:21.968Z] -- Compiling with type library support
[2024-02-01T08:36:21.968Z] -- Compiling with topic discovery support
[2024-02-01T08:36:21.968Z] -- Performing Test COMPILER_HAS_DEPRECATED_ATTR
[2024-02-01T08:36:22.909Z] -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Failed
[2024-02-01T08:36:22.909Z] -- Performing Test COMPILER_HAS_DEPRECATED
[2024-02-01T08:36:24.282Z] -- Performing Test COMPILER_HAS_DEPRECATED - Success
[2024-02-01T08:36:24.282Z] -- Configuring done
[2024-02-01T08:36:24.542Z] -- Generating done
[2024-02-01T08:36:24.542Z] CMake Warning:
[2024-02-01T08:36:24.542Z]   Manually-specified variables were not used by the project:
[2024-02-01T08:36:24.542Z] 
[2024-02-01T08:36:24.542Z]     BUILD_DOCS
[2024-02-01T08:36:24.542Z]     CMAKE_EXPORT_NO_PACKAGE_REGISTRY
[2024-02-01T08:36:24.542Z]     CONAN_COMPILER
[2024-02-01T08:36:24.542Z]     CONAN_COMPILER_VERSION
[2024-02-01T08:36:24.542Z]     CONAN_CXX_FLAGS
[2024-02-01T08:36:24.542Z]     CONAN_C_FLAGS
[2024-02-01T08:36:24.542Z]     CONAN_EXPORTED
[2024-02-01T08:36:24.542Z]     CONAN_IN_LOCAL_CACHE
[2024-02-01T08:36:24.542Z]     CONAN_LINK_RUNTIME
[2024-02-01T08:36:24.542Z]     ENABLE_SHM
[2024-02-01T08:36:24.542Z]     ENABLE_TYPE_DISCOVERY
[2024-02-01T08:36:24.542Z] 
[2024-02-01T08:36:24.542Z] 
[2024-02-01T08:36:24.542Z] -- Build files have been written to: C:/cnn1/f54e94/1
[2024-02-01T08:36:24.800Z] Microsoft (R)-Build-Engine, Version 15.9.21+g9802d43bc3 f�r .NET Framework
[2024-02-01T08:36:24.800Z] Copyright (C) Microsoft Corporation. Alle Rechte vorbehalten.
[2024-02-01T08:36:24.800Z] 
[2024-02-01T08:36:25.368Z]   Checking Build System
[2024-02-01T08:36:25.627Z]   Building Custom Rule C:/cnn1/f54e94/1/src/ddscxx/CMakeLists.txt
[2024-02-01T08:36:25.886Z]   Duration.cpp
[2024-02-01T08:36:26.821Z]   Exception.cpp
[2024-02-01T08:36:27.080Z]   Reference.cpp
[2024-02-01T08:36:27.650Z]   Time.cpp
[2024-02-01T08:36:28.585Z]   CorePolicy.cpp
[2024-02-01T08:36:29.154Z]   State.cpp
[2024-02-01T08:36:29.723Z]   discovery.cpp
[2024-02-01T08:36:30.659Z]   pubdiscovery.cpp
[2024-02-01T08:36:32.036Z]   subdiscovery.cpp
[2024-02-01T08:36:32.972Z] C:\cnn1\f54e94\1\src\ddscxx\include\org/eclipse/cyclonedds/topic/datatopic.hpp(653): error C2989: 'ddsi_serdata': class template has already been declared as a non-class template [C:\cnn1\f54e94\1\src\ddscxx\ddscxx.vcxproj]
[2024-02-01T08:36:32.972Z]   C:\cnn1\09e4cf\1\include\dds/ddsi/ddsi_serdata.h(341): note: see declaration of 'ddsi_serdata'
[2024-02-01T08:36:32.972Z] C:\cnn1\f54e94\1\src\ddscxx\include\org/eclipse/cyclonedds/topic/datatopic.hpp(652): error C3857: 'serdata_from_loaned_sample': multiple template parameter lists are not allowed [C:\cnn1\f54e94\1\src\ddscxx\ddscxx.vcxproj]
[2024-02-01T08:36:32.972Z] C:\cnn1\f54e94\1\src\ddscxx\include\org/eclipse/cyclonedds/topic/datatopic.hpp(695): fatal error C1903: unable to recover from previous error(s); stopping compilation [C:\cnn1\f54e94\1\src\ddscxx\ddscxx.vcxproj]
[2024-02-01T08:36:32.972Z]   Internal Compiler Error in C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\CL.exe.  You will be prompted to send an error report to Microsoft later.
[2024-02-01T08:36:35.525Z]   CTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASHCTIPlugin::InvokeCallback=APPCRASH
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

1 participant