Support / Discussion for Cheerp has been migrated to Discord https://discord.leaningtech.com
@kkimdev it does, see https://github.com/leaningtech/cheerp-meta/wiki/FAQs-(Frequently-asked-questions)#should-i-release-my-code-as-gpl-if-i-use-cheerp.
However, if GPLv2 restrictions are not acceptable, we offer alternative (non-copyleft) licenses https://leaningtech.com/cheerp/
client::ArrayBuffer* buf=(client::ArrayBuffer*)xhr->get_response();
int byteLength = buf->get_byteLength();
client::Int8Array* i8buf=new client::Int8Array(buf);
char* charBuf=__builtin_cheerp_make_regular<char>(i8buf, 0);
/Applications/cheerp/bin/clang -O3 -target cheerp -I/Applications/cheerp/include hello.cpp -o hello
-I
flag
Cheerp 2.0rc1 clang version 3.7.0 (https://github.com/leaningtech/cheerp-clang.git 0becf4771548324fce4e66a22a3eb30526253384) (https://github.com/leaningtech/cheerp-llvm.git cbf31a0e0f58fbaa347b065932ffb3f67efd883b) (based on LLVM 3.7.0svn)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
It was a copy and paste from the example in the tutorial page:
`#include <cheerp/clientlib.h>
// webMain is the entry point for web applications written in Cheerp.
void webMain()
{
// client is a C++ namespace that contains all browser APIs
client::console.log("Hello World Wide Web!");
}`