Skip to content
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

node-win32ole - build erros #22

Open
agape824 opened this issue Aug 27, 2015 · 13 comments
Open

node-win32ole - build erros #22

agape824 opened this issue Aug 27, 2015 · 13 comments

Comments

@agape824
Copy link

I'm building node-win32ole addon using node-gyp.
There are many errors.

(configuration)

  • Visual Studio Express 2008
  • Python 2.6

What is the cause of these errors?
Is there any pre-built module?

Compiling...
v8variant.cc
client.cc
force_gc_internal.cc
force_gc_extension.cc
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(86) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(87) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(88) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(89) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(90) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(91) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\node_win32ole.h(92) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(10) : error C2039: 'ObjectWrap' : is not a member of 'node'
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(10) : error C2504: 'ObjectWrap' : base class undefined
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(14) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(14) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(15) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(15) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(16) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(16) : error C2143: syntax error : missing ',' before '&'
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(18) : error C2039: 'ObjectWrap' : is not a member of 'node'
c:\program files\nodejs\node_modules\node-win32ole\src\client.h(18) : error C2614: 'node_win32ole::Client' : illegal member initialization: 'ObjectWrap' is not a base or member
1>C:\Program Files\Microsoft Visual Studio 9.0\vc\include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
..\src\force_gc_internal.cc(19) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
..\src\force_gc_internal.cc(19) : error C2143: syntax error : missing ',' before '&'
..\src\force_gc_internal.cc(21) : error C2248: 'v8::HandleScope::HandleScope' : cannot access protected member declared in class 'v8::HandleScope'
C:\Users\Administrator.node-gyp\0.12.7\deps\v8\include\v8.h(816) : see declaration of 'v8::HandleScope::HandleScope'
C:\Users\Administrator.node-gyp\0.12.7\deps\v8\include\v8.h(800) : see declaration of 'v8::HandleScope'
..\src\force_gc_internal.cc(23) : error C2065: 'args' : undeclared identifier
..\src\force_gc_internal.cc(23) : error C2228: left of '.Length' must have class/struct/union
type is ''unknown-type''
...
...
..\src\node_win32ole.cc(87) : error C2227: left of '->GetFunction' must point to class/struct/union/generic type
..\src\node_win32ole.cc(86) : error C3861: 'NewSymbol': identifier not found
..\src\node_win32ole.cc(87) : fatal error C1003: error count exceeds 100; stopping compilation

@agape824
Copy link
Author

I solved the problem
by installing node.js v0.8.18 & npm v1.4.28.
Previous erros were produced by different version of node files (eg. v8.h).

@consideRatio
Copy link

Any way to update this repo so that we can use later versions of node?

@consideRatio
Copy link

@agape824 can you tell me more about your successful installation?

What OS do you have? Did you have Visual studio installed?

@ghost
Copy link

ghost commented Nov 29, 2015

i have this problem, latest node and npm on 29.11.2015. os windows 8.1, vs 2013 express, python 2.7

@ghost
Copy link

ghost commented Nov 29, 2015

node ver. and npm can as ay later

@AndrewSav
Copy link

I'm getting these errors too. I also can confirm that using node.js v0.8.18 & npm v1.4.28 works. It would be nice if this can be brought up to date to support most recent version of nodejs/npm.

@agape824
Copy link
Author

considerRatio,
I have Windows 7(32bit) and Visual Studio Express (2008 or later).

@generalov
Copy link

There were breaking API changes near nodejs v0.12. v8::Arguments had been replaced by v8::FunctionCallbackInfo<v8::Value> and causes compilation errors above. So some code changes are needed to support most recent versions.

@antoinepairet
Copy link

@generalov would you be interested in making a fork of this project ?
I think this library should be ported to NAN in order to be compatible with different ABI versions.
What do you think?

@generalov
Copy link

@antoinepairet It is a good idea! Unfortunately I do not have enough experience in C++ programming to make such changes. Currently I dig around other alternatives:

@fabiorogeriosj
Copy link

fabiorogeriosj commented Jun 1, 2017

I have same error :(

@relief-melone
Copy link

Same here. VS2013Express, Python 2.6.4. Hope someone comes up with a clue to this. Unfortunately my c++ skills are very limited otherwise I'd gladly help.

@rpaggi
Copy link

rpaggi commented Sep 8, 2017

I'm also trying to use but this error appears for me too. My config is:
Windows 10 x64
node v6.11.3
npm v3.10.10
python 2.7
For MSBUILD I've used this package: https://www.npmjs.com/package/windows-build-tools

Anyone can help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants