-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extern "C" declarations not being generated #67
Comments
Looks like |
I use clang to compile c++ to web assembly, if i want to export function, i must let that function to extern "C". this case is parse with LinkageSpecDecl in clang. @rpav |
If the WebAssembly interface can only use functions with C linkage, it sounds more like you need to use something like this project I'm working on: https://github.com/spaceotter/unplusplus - this generates C linkage stubs from a C++ library automatically. The header it generates can be processed as a C header without extern "C". |
@spaceotter unplusplus looks like the holy grail for wrapping C++! Will definitely keep my eye on it. |
i compiled this file demo.cpp :
extern "C" {
int do_something(){
return 0;
}
}
the tool is not generate do_something function. please help me.
The text was updated successfully, but these errors were encountered: