amitkr / nodejs-db-informix

Infomix bindings for nodejs
MIT License
3 stars 3 forks source link

Compiling error #14

Closed user1020 closed 10 years ago

user1020 commented 10 years ago

I know it's not completely ready, I just want to see how far I can go with this module. It's very interesting to my project.

When I tried to build it by "npm install nodejs-db-informix", got the following error. Wonder what's the reason.

make: Entering directory `/home/jin1/projs/nodeSrv/node_modules/nodejs-db-informix/build'
  CXX(target) Release/obj.target/informix_bindings/lib/nodejs-db/binding.o
cc1plus: error: unrecognized command line option ‘-std=c++11’
make: *** [Release/obj.target/informix_bindings/lib/nodejs-db/binding.o] Error 1

thanks.

amitkr commented 10 years ago

Hi, Which version of g++ are you using? What's your environment?

As far as I know this has worked for other people on linux environment with a recent enough gcc , Informix 11.5 with cdk installed.

Thanks

user1020 commented 10 years ago

Hi Amit,

My g++ has version 4.6.3. I don't have informix 11.5 cdk installed. Apply from IBM right now. Guess it's a must.

Thanks for your support.

amitkr commented 10 years ago

@user1020 gcc v4.6 does not support c++11. see here Please use gcc v4.7 onwards.

user1020 commented 10 years ago

Thanks Amit. That's the cause of it.