Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Issue while compiling smart contract - eosio.cdt v1.6.1 #489

Closed
stone89son opened this issue Apr 6, 2019 · 2 comments
Closed

Issue while compiling smart contract - eosio.cdt v1.6.1 #489

stone89son opened this issue Apr 6, 2019 · 2 comments

Comments

@stone89son
Copy link

stone89son commented Apr 6, 2019

Enviroment: Ubuntu 18
Smart Contract Compiler: eosio.cdt v1.6.1
-I compiled with eosio.cdt v1.5 successful, but I compile smart contract with eosio.cdt v1.6.1 to error message.
-file jdex.hpp and jdex.cpp in path: ~/xxx/v.0.02

~/xxx/v.0.02$ eosio-cpp -o jdex.wasm jdex.cpp --abigen
Warning, empty ricardian clause file
Warning, empty ricardian clause file
Warning, action does not have a ricardian contract
Warning, action does not have a ricardian contract
Warning, action does not have a ricardian contract
Warning, action does not have a ricardian contract
/tmp/jdex.cpp:1:10: fatal error: './jdex.hpp' file not found
#include "./jdex.hpp"
^~~~~~~~~~~~
1 error generated.
/usr/opt/eosio.cdt/1.6.1/bin/wasm-ld: error: cannot open /tmp/jdex.cpp.o: No such file or directory

@conr2d
Copy link
Contributor

conr2d commented Apr 6, 2019

This is related to #472.
You can resolve by add -I. in your command:

$ eosio-cpp -o jdex.wasm jdex.cpp --abigen -I.

@stone89son
Copy link
Author

@conr2d , thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants