There's no implementation of getsockopt() in emscripten currently. - Bruce
On Tue, Mar 11, 2014 at 10:14 PM, Eric.Yang <[email protected]> wrote: > Hi all, > > I used emscripten to compile my code and I met a a warning message not > related to embind. > > --------------------------------------------------------------------------------------------------------------------------------------- > DEBUG root: linking took 0.53 seconds > DEBUG root: saving intermediate processing steps to /tmp/emscripten_temp > DEBUG root: emcc: LLVM opts: ['-disable-internalize', '-internalize', > '-internalize-public-api-list=main,malloc,free', '-std-link-opts', '-S'] > DEBUG root: step took 1.87 seconds > DEBUG root: LLVM => JS > DEBUG root: emscript: ll=>js > DEBUG root: emscript: scan took 0.0136179924011 seconds > DEBUG root: emscript: split took 0.0173079967499 seconds > warning: unresolved symbol: _embind_register_class_function > warning: unresolved symbol: _embind_register_class_constructor > warning: unresolved symbol: _embind_register_class > *warning: unresolved symbol: getsockopt* > warning: unresolved symbol: _embind_register_void > warning: unresolved symbol: _embind_register_bool > warning: unresolved symbol: _embind_register_integer > warning: unresolved symbol: _embind_register_float > warning: unresolved symbol: _embind_register_std_string > warning: unresolved symbol: _embind_register_std_wstring > warning: unresolved symbol: _embind_register_emval > warning: unresolved symbol: _embind_register_memory_view > > ----------------------------------------------------------------------------------------------------------------------------------------- > > when I tried to run it in browser, I got this error message. There is no > _getsockopt > function defined in js file. > > Uncaught ReferenceError: _getsockopt is not defined a.out.js:10743 > (anonymous function) a.out.js:10743 > __Z14sendAndRecvReqNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEi > a.out.js:10743 > (anonymous function) a.out.js:7324 > __ZN12CBatteryInfo16GetTotalCapacityEv a.out.js:7324 > __ZN10emscripten8internal13MethodInvokerIM12CBatteryInfoFivEiPS2_JEE6invokeERKS4_S5_ > a.out.js:8703 > CBatteryInfo$GetTotalCapacity VM95:8 > (anonymous function) > > > So what do I miss when compiling and what should I do to include sys lib? > > Any comments would be appreciated! > > Thanks. > > -- > 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/d/optout. > -- 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/d/optout.
