You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.
eosio-cpp calls clang-7 as subprocess to build each source file, and clang determines whether given file is cpp or c. When compiling cpp and c source file together with eosio-cpp, -std=c++17 is added to compile options by default, but it causes an error during c source file compilation.
$ /home/conr2d/eosio/eosio.cdt/bin/eosio-cpp -o test.wasm test.cpp foo.c
Warning, empty ricardian clause file
Warning, empty ricardian clause file
Warning, action <hi> does not have a ricardian contract
Warning, empty ricardian clause file
Warning, empty ricardian clause file
Warning, action <hi> does not have a ricardian contract
error: invalid argument '-std=c++17' not allowed with 'C'
error: invalid argument '-std=c++17' not allowed with 'C'
error: invalid argument '--std=c++17' not allowed with 'C'
/home/conr2d/eosio/eosio.cdt/bin/wasm-ld: error: cannot open /tmp/foo.c.o: No such file or directory
The text was updated successfully, but these errors were encountered:
eosio-cpp calls clang-7 as subprocess to build each source file, and clang determines whether given file is cpp or c. When compiling cpp and c source file together with eosio-cpp,
-std=c++17
is added to compile options by default, but it causes an error during c source file compilation.The text was updated successfully, but these errors were encountered: