Thursday, 15 May 2014

c++ - How to fix compile errors when including emscripten headers? -



c++ - How to fix compile errors when including emscripten headers? -

i'm trying utilize emscripten embind bind c++ functions javascript. unfortunately compile errors when including specific header file #include <emscripten/bind.h>.

i checked emscripten environment , set additonal include directory in vs2013 absolute path of installation folder (also tried $(emscripten); , adapted inlcude statement).

when compiling project, 20+ compile errors:

17>d:\program files\emscripten\emscripten\1.25.0\system\include\emscripten\wire.h(24): error c2144: syntax error : 'bool' should preceded ';' 17>d:\program files\emscripten\emscripten\1.25.0\system\include\emscripten\wire.h(24): error c4430: missing type specifier - int assumed. note: c++ not back upwards default-int 17>d:\program files\emscripten\emscripten\1.25.0\system\include\emscripten\wire.h(39): error c2146: syntax error : missing ';' before identifier 'typeid' 17> d:\program files\emscripten\emscripten\1.25.0\system\include\emscripten\wire.h(42) : see reference class template instantiation 'emscripten::internal::canonicalizedid<t>' beingness compiled 17>d:\program files\emscripten\emscripten\1.25.0\system\include\emscripten\wire.h(39): error c4430: missing type specifier - int assumed. note: c++ not back upwards default-int 17>d:\program files\emscripten\emscripten\1.25.0\system\include\emscripten\wire.h(54): error c2146: syntax error : missing ';' before identifier 'typeid' ...

i tried emscripten 1.22.0 , 1.25.0 , verified emscripten environment next those instructions. missing?

as far know, of ms visual studio editions, vs2010 supported in emscripten.

http://kripken.github.io/emscripten-site/docs/getting_started/getting_started_with_emscripten_and_vs2010.html#getting-started-emscripten-from-visual-studio

c++ visual-studio compiler-errors header-files emscripten

No comments:

Post a Comment