I don’t want to compile the stdlib externally (neither as shared or static library), but instead just compile chaiscript_stdlib.cpp and stl_extra.cpp along with my project, however I’m running into problems at the linking stage.
./extlibs/chaiscript_stdlib.cpp.o: In function `json::Object()': /usr/include/c++/5/bits/shared_ptr_base.h:659: multiple definition of `json::Object()' ./src/Kit/ScriptedState.cpp.o:./extlibs/chaiscript/utility/json.hpp:435: first defined here
How could this possibly happen when the json.hpp file most certainly has header guards? (both #pragma once and #ifndef x #define x #endif)
Compiling using GCC version: gcc (Ubuntu 5.2.1-22ubuntu2) 5.2.1 20151010