We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
src/abieos.cpp isn't included in static library. so my simple C program can't compile/link.
#include <stdio.h> #include "../src/abieos.h" int main() { fprintf(stdout,"hello\n"); abieos_context *context = abieos_create(); abieos_destroy(context); }
my 'fix' is to include src/abieos.cpp in the library CMakeList.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt index c14e851..e5efa05 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,7 +33,7 @@ endif() find_package(Threads) -add_library(abieos STATIC src/abi.cpp src/crypto.cpp include/eosio/fpconv.c) +add_library(abieos STATIC src/abieos.cpp src/abi.cpp src/crypto.cpp include/eosio/fpconv.c) target_include_directories(abieos PUBLIC include external/rapidjson/include) add_library(abieos_module MODULE src/abieos.cpp src/abi.cpp src/crypto.cpp include/eosio/fpconv.c)
The text was updated successfully, but these errors were encountered:
#51 seems to have a better solution to this issue
Sorry, something went wrong.
No branches or pull requests
src/abieos.cpp isn't included in static library.
so my simple C program can't compile/link.
my 'fix' is to include src/abieos.cpp in the library CMakeList.txt
The text was updated successfully, but these errors were encountered: