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

bug: compile error after apply commit 64c5b07 and d218cb7 #84

Closed
gzliudan opened this issue Oct 22, 2020 · 2 comments · Fixed by #86
Closed

bug: compile error after apply commit 64c5b07 and d218cb7 #84

gzliudan opened this issue Oct 22, 2020 · 2 comments · Fixed by #86
Assignees

Comments

@gzliudan
Copy link

gzliudan commented Oct 22, 2020

compile error after apply latest commit of master branch:

In file included from xxxxxx/eosio/abieos/src/abi.cpp:2:
xxxxxx/eosio/abieos/src/abieos.hpp:39:10: fatal error: 'abieos_numeric.hpp' file not found
#include "abieos_numeric.hpp"
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
src/CMakeFiles/baozi-db.dir/build.make:367: recipe for target 'src/CMakeFiles/baozi-db.dir/__/eosio/abieos/src/abi.cpp.o' failed
make[2]: *** [src/CMakeFiles/baozi-db.dir/__/eosio/abieos/src/abi.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'src/CMakeFiles/baozi-db.dir/all' failed
make[1]: *** [src/CMakeFiles/baozi-db.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2


xxxxxx/eosio/abieos/src/abieos.cpp:3:10: fatal error: 'abieos.h' file not found
#include "abieos.h"
         ^~~~~~~~~~
1 error generated.
src/CMakeFiles/baozi-db.dir/build.make:393: recipe for target 'src/CMakeFiles/baozi-db.dir/__/eosio/abieos/src/abieos.cpp.o' failed
make[2]: *** [src/CMakeFiles/baozi-db.dir/__/eosio/abieos/src/abieos.cpp.o] Error 1
CMakeFiles/Makefile2:140: recipe for target 'src/CMakeFiles/baozi-db.dir/all' failed
make[1]: *** [src/CMakeFiles/baozi-db.dir/all] Error 2
Makefile:148: recipe for target 'all' failed
make: *** [all] Error 2

my fix:

  • in file src/abieos.hpp :
// #include "abieos_numeric.hpp"
#include <eosio/abieos_numeric.hpp>
  • in file src/abieos.cpp:
// #include "abieos.h"
#include <eosio/abieos.h>
@lucgerrits
Copy link

lucgerrits commented Oct 23, 2020

I have the same issue.
Fix is:
Change includes like you suggeted, but for files: ./src/abieos.cpp , ./src/test.cpp , ./src/fuzzer.hpp . With :

// #include "abieos.h"
#include "eosio/abieos.h"

AND copy-paste this file ./include/eosio/abieos_numeric.hpp to ./src/abieos_numeric.hpp .

Edit: with this solution I only make abieos and have to add -I abieos/external/rapidjson/include -I abieos/include/ in my program makefile.

@lucgerrits
Copy link

Ps: An example of how I implemented abieos is here: https://github.com/lucgerrits/EOS.IO-cpp-client

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

Successfully merging a pull request may close this issue.

3 participants