microsoft / Chakra-Samples

Repository for Chakra JavaScript engine related samples.
MIT License
216 stars 84 forks source link

Linux compile error #39

Closed mgozcu closed 8 years ago

mgozcu commented 8 years ago

hi.

i can compile chakra in linux successfully.

but when i tried compile helloworld sample in linux, an error ocrrured below:

ChakraCommon.h:71:46: error: expected unqualified-id before string constant #define CHAKRA_API SET_API_VISIBILITY extern "C" JsErrorCode

i am compiling helloworld projects make file like bellow: make BUILD_TYPE=Release

obastemur commented 8 years ago

Do you compile the sample using Clang ?

mgozcu commented 8 years ago

how can i proceed it ?

obastemur commented 8 years ago

Inside the Makefile, see https://github.com/Microsoft/Chakra-Samples/blob/master/ChakraCore%20Samples/Hello%20World/Linux_OSX/Makefile#L7

that can be clang++ (i.e. clang++-3.8)

mgozcu commented 8 years ago

dear oguz

problem solved. thanks for help.

note: i compiled it debian 8.