Open yurivict opened 8 years ago
CXXFLAGS="-std=c++03"
fixed this for me.
@henrikhodne @zcbenz Any idea what could be causing this error?
https://travis-ci.org/Aluxian/Whatsie/builds/118493607
> spellchecker@3.2.3 install /Users/travis/build/Aluxian/Whatsie/src/node_modules/spellchecker
> node-gyp rebuild
- CXX(target) Release/obj.target/spellchecker/src/main.o
CXX(target) Release/obj.target/spellchecker/src/spellchecker_mac.o
-\ CXX(target) Release/obj.target/spellchecker/src/transcoder_posix.o
../src/transcoder_posix.cc:17:28: error: expected expression
two_byte_value.integer = {0x0102};
^
1 error generated.
make: *** [Release/obj.target/spellchecker/src/transcoder_posix.o] Error 1
I don't have much experience with C++ compilation so I'm not sure I understand how everything works. What could be the cause of that error? Compilers on Travis too old? How can I debug it? What would you do?
My .travis.yml is similar to the one from node-spellchecker. See what I've tried here (my .travis.yml file history).
Thanks!
Nevermind, I fixed it <3
I used electron-gyp from the beginning to install the modules. https://travis-ci.org/Aluxian/Whatsie/builds/118535163
Getting these errors with clang:
and similar errors with gcc-4.8 on FreeBSD 10.2: