Open nidhaloff opened 2 years ago
Everything needs to be compiled with eosio-cpp, as the target is Web Assembly. Trying to link a native library definitely will not work. If you have the source code to the library, you can try to include it as part of the compile and this may work, depending on what header files it tries to include. If it is a large library, this may present problems with the smart contract size. Typically the generated WASM should be < 1 MB.
I want to link an external library to my contract. I did not find examples on how to do this. All examples are very basic and do not include external libs.
I know that there is a macro
add_contract
, but is there also a macro fortarget_link_contracts
or something like this because target_link_libraries is not working in this case.Here is my cmake config
This is the error I receive