Closed feelinc closed 11 years ago
I'm having this problem too.
What node version are you using?
CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings.o
../src/mysql_bindings.cc:8:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined
#define BUILDING_NODE_EXTENSION
This warning was fixed. The first problem with TypeError: Cannot read property 'MysqlConnection' of null
is related to #162.
Hi,
I'm having another problem in another mountain lion machine, i'm getting 1 warning when executing "npm install" / "node-gyp build". mysql_bindings.node created, but I cannot connect to MySQL with following error :
MysqlConnectionQueued.prototype = new bindings.MysqlConnection(); ^ TypeError: Cannot read property 'MysqlConnection' of null
The console log when building the mysql_bindings.node :
localhost:mysql-libmysqlclient Me$ npm install
CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings.o ../src/mysql_bindings.cc:8:9: warning: 'BUILDING_NODE_EXTENSION' macro redefined
define BUILDING_NODE_EXTENSION
define BUILDING_NODE_EXTENSION 1
1 warning generated. CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_connection.o CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_result.o CXX(target) Release/obj.target/mysql_bindings/src/mysql_bindings_statement.o SOLINK_MODULE(target) Release/mysql_bindings.node SOLINK_MODULE(target) Release/mysql_bindings.node: Finished
Hope you can tell what I need to do to solving this. Thanks.