Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [compilation]

The tag has no usage guidance.

0
votes
0answers
18 views

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

I compile with old version to no error, but I compile smart contract with eosio.cdt v1.6.1 to error message. I use Ubuntu 18 ~/xxx/v.0.02$ eosio-cpp -o jdex.wasm jdex.cpp --abigen Warning, ...
0
votes
0answers
16 views

Duplicate symbol WASM compilation error when using header/hpp for contract

I'm looking to use a hpp file as an interface for multiple contracts. I've created a test contract and receiving a WASM compilation error. I based the test contract on the format used by eosio.token....
0
votes
1answer
19 views

Why does the -abigen option in eosio.cdt not work?

When trying to compile my contract, I use the -abigen flag in order to auto-generate the necessary ABI file. This did not work, and gave no errors or warnings. The code to compile the contract is as ...
1
vote
1answer
51 views

Issue while compiling smart contract - eosio.cdt

I have installed eosio.cdt in Ubuntu system by using commands from EOS Developers Portal wget https://github.com/EOSIO/eosio.cdt/releases/download/v1.4.1/eosio.cdt-1.4.1.x86_64.deb sudo apt install ./...
2
votes
1answer
88 views

Constructor error message

I am writing a smart contract for use within the EOSIO system contract. I am receiving this error message multiple times: constructor for 'eosio::multi_index<13510798882111488, BP>::item' must ...
2
votes
1answer
42 views

static_assert failed "Types with user specified constructors (non-aggregate initializable types) are not supported

I am writing a smart contract for use with the EOSIO system contract, and am receiving this error message multiple times when I try to compile the code. I have checked my constructors and they are ...
0
votes
0answers
25 views

Compiling eos software to get dlls

How can I compile EOS software on Linux or Windows to get dynamically linked libraries (DLLs) that I need in order to create an EOS wrapper to compile and deploy smart contracts from other programming ...
3
votes
2answers
101 views

What is needed to get the EOS ~1.1.4 tutorials working on Ubuntu 16.04 (having compiled from source)?

I've found lots of info for Dawn 3.0, but there's a note in the 1.1.0 release notes that acknowledges that the EOS Developer Portal tutorials (token, exchange, helloWorld) don't work and need updating,...
3
votes
1answer
41 views

What is an overhead of a smart-contracts compiled to WebAssembly using different languages?

Let's say I'm going to write a simple smart-contract to be executed in wasm. Is there any inherit overhead by the language I will use? In particular I'm interested of overhead between following ...
4
votes
3answers
491 views

Can not find <eosiolib/eosio.hpp> when compiling with eosiocpp #2

I'm trying to compile any smart contract. Let's say the skeleton one. When running eosiocpp -o it can't find the header file for eosio. Not a duplicate of Can not find <eosiolib/eosio.hpp> when ...
0
votes
1answer
81 views

Is it possible to compile a smart contract using g++ or clang?

I want to write and execute some unit tests on a smart contract outside of nodeos, but to do that I need to be able to compile the code the normal C++ way, using g++ or clang, so that I get object or ...
1
vote
0answers
26 views

nodeos compilation and missing libsoci_core.so.4.0 library

compiled and installed latest release of soci lib. set $PATH to include compiled libraries. compiled 1.1 release with sql plugin now they i try to run nodeos with sql plugin enabled i get this error: ...
5
votes
1answer
283 views

How to correctly include multiple .cpp files in eosiocpp -o?

I am trying to include a JSON-Parsing library into my smart contract. There are only two .hpp/.cpp files to link which are in the same folder as the contract. JSON and JSONValue In my contracts ...
2
votes
1answer
221 views

Importing CMake Project into Clion, Unable to find BOOST_ROOT

I get the following error when importing eos (1.0 from github) as a clion project. Does anyone know where I can set BOOST_ROOT? /home/usera/clion-2018.1.3/bin/cmake/bin/cmake -DCMAKE_BUILD_TYPE=...
0
votes
1answer
74 views

Can't use fopen, fclose, and ifstream

Here's a screenshot of the problem. This happened when I use eosiocpp to compile my .cpp file into .wast. Does the compiler not allow file reading?
1
vote
1answer
68 views

Dawn4 build error - eosio.token/eosio.token.wast.hpp: No such file or directory

I was able to run Dawn 3, but ran into a snag with Dawn 4: Using a fresh CentOS7 VM in VirtualBox, building the dawn-v4.0.0 tag using the eosio_build.sh: [ 80% ] Building CXX object libraries/testing/...
2
votes
1answer
73 views

Is the a way to pass preprocessor macro to `eosiocpp` for specific types of compilation

I would like to develop my contracts in a way where I can pass a compile time flag to enable/disable debugging code so that the debugging functionality would not be compiled into the "production" ...