c++ 合约编译不过
root@66e0d47c04a8:/home/contract_cpp# make
CC main.cc
main.cc: In member function 'void Counter::functional_verify()':
main.cc:96:6: error: 'memcpy' is not a member of 'std'
std::memcpy(&code, &strCode[0], sizeof(code));
^~~
Makefile:12: recipe for target 'build/main.o' failed
make: *** [build/main.o] Error 1
root@66e0d47c04a8:/home/contract_cpp#
root@66e0d47c04a8:/home/contract_cpp# make
CC main.cc
CC basic_iterator.cc
CC context_impl.cc
CC contract.cc
CC crypto.cc
CC syscall.cc
CC easycodec.cc
@g++ -o main.wasm build/main.o build/basic_iterator.o build/context_impl.o build/contract.o build/crypto.o build/syscall.o build/easycodec.o -Oz -s TOTAL_STACK=256KB -s TOTAL_MEMORY=1MB -s DETERMINISTIC=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=[stackAlloc] -L/usr/local/lib -lprotobuf-lite -lpthread --js-library chainmaker/exports.js
g++: error: TOTAL_STACK=256KB: No such file or directory
g++: error: TOTAL_MEMORY=1MB: No such file or directory
g++: error: DETERMINISTIC=1: No such file or directory
g++: error: EXTRA_EXPORTED_RUNTIME_METHODS=[stackAlloc]: No such file or directory
g++: error: unrecognized command line option '--js-library'
Makefile:47: recipe for target 'main.wasm' failed