I try to compile cpp to js with embind. But I met some problems.
The error message below shows that there are "ambiguous" functions in my
code. But I only have ONE "Broadcast"&"Login" function defined there.
any comments?
DeviceDiscover.cpp:101:2: error: reference to 'function' is ambiguous
function("Broadcast", &Broadcast);
^
/home/shunxung/emscripten/system/include/libcxx/functional:1244:49: note:
candidate found by name lookup is
'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS_ONLY function; // undefined
^
/home/shunxung/emscripten/system/include/emscripten/bind.h:297:10: note:
candidate found by name lookup is
'emscripten::function'
void function(const char* name, ReturnType (*fn)(Args...), Policies...)
{
^
DeviceDiscover.cpp:102:2: error: reference to 'function' is ambiguous
function("Login", &Login);
^
/home/shunxung/emscripten/system/include/libcxx/functional:1244:49: note:
candidate found by name lookup is
'std::__1::function'
template<class _Fp> class _LIBCPP_TYPE_VIS_ONLY function; // undefined
^
/home/shunxung/emscripten/system/include/emscripten/bind.h:297:10: note:
candidate found by name lookup is
'emscripten::function'
void function(const char* name, ReturnType (*fn)(Args...), Policies...)
{
--
You received this message because you are subscribed to the Google Groups
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.