New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On 64bits node v.0.12 i have this error: call of overloaded ‘New(long unsigned int&)’ is ambiguous #48

Closed
mariuz opened this Issue Feb 23, 2015 · 3 comments

Comments

Projects
None yet
1 participant
@mariuz
Contributor

mariuz commented Feb 23, 2015

In file included from ../node_modules/nan/nan.h:80:0,
from ../src/././fb-bindings.h:11,
from ../src/./fb-bindings-blob.h:11,
from ../src/fb-bindings-blob.cc:9:
../node_modules/nan/nan_new.h: In instantiation of ‘typename NanIntern::Factory::return_t NanNew(A0) [with T = v8::Integer; A0 = long unsigned int; typename NanIntern::Factory::return_t = v8::Localv8::Integer]’:
../src/fb-bindings-blob.cc:264:5: required from here
../node_modules/nan/nan_new.h:209:41: error: call of overloaded ‘New(long unsigned int&)’ is ambiguous
return NanIntern::Factory::New(arg0);

xdenser added a commit that referenced this issue Feb 23, 2015

Update fb-bindings-blob.cc
Possible fix for #48. Can not test fast on 63bit now.
@mariuz

This comment has been minimized.

Contributor

mariuz commented Feb 24, 2015

one more at line 209 in src/fb-bindings-eventblock.cc

Seems that we need a conversion from intptr_t to Integer

argv[1] = NanNew(Vector[i]);

CXX(target) Release/obj.target/binding/src/fb-bindings-eventblock.o
In file included from ../node_modules/nan/nan.h:74:0,
from ../src/././fb-bindings.h:11,
from ../src/./fb-bindings-fbeventemitter.h:10,
from ../src/fb-bindings-eventblock.cc:9:
../node_modules/nan/nan_new.h: In instantiation of ‘typename NanIntern::Factory::return_t NanNew(A0) [with T = v8::Integer; A0 = long int; typename NanIntern::Factory::return_t = v8::Localv8::Integer]’:
../src/fb-bindings-eventblock.cc:209:42: required from here
../node_modules/nan/nan_new.h:209:41: error: call of overloaded ‘New(long int&)’ is ambiguous
return NanIntern::Factory::New(arg0);

@mariuz

This comment has been minimized.

Contributor

mariuz commented Feb 24, 2015

Fixed this way , I will send a pull request
argv[1] = NanNew(uint32_t(Vector[i]));

@mariuz

This comment has been minimized.

Contributor

mariuz commented Feb 24, 2015

All compiles and installs ok with sudo npm install -g xdenser/node-firebird-libfbclient

please bump the version in npmjs

@mariuz mariuz closed this Feb 24, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment