Comments (5)
Please don't close. CNL is intended to work with both versions of the compiler.
from cnl.
Hi Eduardo,
Thanks for letting me know. If you could provide any of the info listed here, it would be helpful. In particular, compiler version and flags are likely to explain this.
That specialization was previously not defined until C++17. Likely, a toolchain defined this in its standard library implementation since a certain version. It would be useful to confirm this. It would appear benign though if it's the only error you're seeing.
Cheers,
John
from cnl.
Hi John,
Thanks for the prompt reply. For your convenience, please find below the template-friendly problem I am facing and further info.
Describe the bug
When trying to build and install CNL v1.1.2 I ran through the following error:
[ 95%] Building CXX object test/unit/CMakeFiles/test-unit-presentations-cppcon2017.dir/presentations/cppcon2017.cpp.o
/home/falco/repos/cnl-1.1.2/test/unit/presentations/cppcon2017.cpp:24:13: error: redefinition of ‘struct std::hash<std::filesystem::__cxx11::path>’
24 | struct std::hash<filesystem::path> {
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/11/filesystem:45,
from /home/falco/repos/cnl-1.1.2/test/unit/presentations/cppcon2017.cpp:16:
/usr/include/c++/11/bits/fs_path.h:1361:10: note: previous definition of ‘struct std::hash<std::filesystem::__cxx11::path>’
1361 | struct hash<filesystem::path>
| ^~~~~~~~~~~~~~~~~~~~~~
It happens in both cppcon2017.cpp
and cppcon2018.cpp
.
To Reproduce
Run the following commands:
mkdir build && cd build
cmake ..
cmake --build . --target install
Expected behavior
Files successfully installed in the system.
Desktop
OS: Ubuntu 22.04.3 LTS Jammy
CMake: 3.22.1
Compilers: gcc/g++ 11.4.0
Compiler flags used: default values apart from those set by the CNL build structure
Conan: 2.0.17
CNL: Latest release, v1.1.2
Please let me know if you need more information.
from cnl.
Hi John,
I downgraded my gcc/g++ compilers to version 10.5 instead of 11.4. Now the build is successful. The issue is not present in my system anymore, so I guess we can close this one.
from cnl.
Ok, let me know what else you will need from me and I can feed you with more details of the issue. I am still able to reproduce it should I upgrade the version.
from cnl.
Related Issues (20)
- Don't reopen std::
- remove cnl/bit.h
- Clang-Tidy won't re-run when .clang-tidy changes
- ensure FetchContent-able
- Put slowest tests first
- the godbolt link in the readme does not compile
- Poor performance when using composition of core numeric types HOT 12
- v1.1.7 crash after multiplication HOT 1
- Publishing CNL 1.x libraries to platformio HOT 3
- Serialization. HOT 3
- Missing rounding conversion operators HOT 1
- MSVC sanitizers HOT 2
- Simplify `__int128` support. HOT 1
- CMake via Conan? HOT 1
- Add base parameter to to_chars HOT 2
- Only build CNL as Debug HOT 1
- to_chars_static allocates buffer too small for -ve numbers HOT 1
- Replace CMAKE_TOOLCHAIN_FILE with CMAKE_PROJECT_INCLUDE_BEFORE HOT 4
- How to use as scaled decimal number (1.x) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cnl.