apexai / static_exception Goto Github PK
View Code? Open in Web Editor NEWStatic exception memory allocation policy.
License: Apache License 2.0
Static exception memory allocation policy.
License: Apache License 2.0
I had the following issue when trying to compile the static_exception library:
CMake Warning at /usr/src/gtest/CMakeLists.txt:54 (project):
VERSION keyword not followed by a value or was followed by a value that
expanded to nothing.
static_exception/test/static_exception_test.cpp:37:20: warning: inline function ‘void exception_memory::__cxx::cxa_free_exception(void*)’ used but never defined
37 | extern inline void cxa_free_exception(void vptr) noexcept;
| ^~~~~~~~~~~~~~~~~~
static_exception/test/static_exception_test.cpp:36:20: warning: inline function ‘void exception_memory::__cxx::cxa_free_dependent_exception(void)’ used but never defined
36 | extern inline void cxa_free_dependent_exception (void vptr) noexcept;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/bin/ld: CMakeFiles/static_exception_test.dir/static_exception_test.cpp.o: in function StaticExceptions_MemoryLeak_Test::TestBody()': static_exception/test/static_exception_test.cpp:193: undefined reference to
exception_memory::__cxx::cxa_free_exception(void)'
/usr/bin/ld: static_exception/test/static_exception_test.cpp:194: undefined reference to `exception_memory::__cxx::cxa_free_dependent_exception(void*)'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/static_exception_test.dir/build.make:90: test/static_exception_test] Error 1
make[1]: *** [CMakeFiles/Makefile2:153: test/CMakeFiles/static_exception_test.dir/all] Error 2
make: *** [Makefile:84: all] Error 2
I used colcon build to build it.
gcc/g++ version are: 9.4.0.
Do you have any idea on how to solve this?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.