Hi,

I am new to emscripten and got interested as we have a  complex C++ code 
that we want converted to Javascript.

I am able to install the emscripten and verify the installation and run the 
convert the sample project hello_world.cpp. However when I try to run one 
of the cpp file from my C++ project it is giving error. How should i go 
about resolving this? Is the error because, i am running just 1 file 
without its dependencies? How to run for the entire project having multiple 
cpp files?

Below error message snippet

C:\emsdk-master\fastcomp\emscripten\tests\VC6_IS>emcc ISMN.cpp

In file included from ISMN.cpp:30:

./isbool.h:8:19: error: redeclaration of C++ built-in type 'bool'

      typedef int bool ;

                  ^

./isbool.h:9:24: error: expected unqualified-id

      static const int true  = 1 ;

                       ^

./isbool.h:10:24: error: expected unqualified-id

      static const int false = 0 ;

                       ^

ISMN.cpp:31:10: warning: non-portable path to file '"Isdll.h"'; specified 
path

 

      differs in case from file name on disk [-Wnonportable-include-path]

#include "isdll.h"

         ^~~~~~~~~~

         "Isdll.h"

ISMN.cpp:41:10: warning: non-portable path to file '"ISSC.H"'; specified 
path

      differs in case from file name on disk [-Wnonportable-include-path]

#include "issc.h"

         ^~~~~~~~~

         "ISSC.H"

ISMN.cpp:46:10: warning: non-portable path to file '"ISSC.H"'; specified 
path

      differs in case from file name on disk [-Wnonportable-include-path]

#include "issc.h"

         ^~~~~~~~~

         "ISSC.H"

3 warnings and 3 errors generated.

shared:ERROR: compiler frontend failed to generate LLVM bitcode, halting

Regards,
Mayur Pai

-- 
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].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/emscripten-discuss/85307f0b-4e6a-4488-942a-dbca4205430a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to