fuwaneko / node-protobuf

Google Protocol Buffers wrapper for Node.js [UNMAINTAINED]
179 stars 42 forks source link

Cannot open include file #26

Closed ghost closed 10 years ago

ghost commented 10 years ago

..\protobuf.cpp(7): fatal error C1083: Cannot open include file: 'google/protob uf/dynamic_message.h': No such file or directory [F:\Development\git\triobit\te rminal\current\npm\node_modules\node-protobuf\build\protobuf.vcxproj]

On Windows 8.1 x64. Latest Node.js and NPM.

fuwaneko commented 10 years ago

@archon432 make sure you follow installation instructions for Windows.

ghost commented 10 years ago

Oops, sorry about that. Will try and close if it solved my problem.

ghost commented 10 years ago

@fuwaneko

I am getting a lot of unresolved external errors with /MT CLR flag. Using Visual Studio 2012, latest x64 Node.js (MSI). Compiling as x64.

This is a sample error: libprotobuf.lib(zero_copy_stream_impl.obj) : error LNK2001: unresolved external symbol "void __cdecl std::_Facet_Register(class std::_Facet_base *)" (?Facet Register@std@@YAXPEAV_Facet_base@1@@Z) [\node_modules\node-protobuf\build\protobuf.vcxproj]

\node_modules\node-protobuf\buil d\Release\protobuf.node : fatal error LNK1120: 4 unresolved externals [\node_modules\node-protobuf\build\protob uf.vcxproj]
fuwaneko commented 10 years ago

@archon432 there's obviously conflict between libraries compiled with different settings. Make sure everything is compiled with the same settings, either all dynamically linked or all statically linked. Libprotobuf must also be compiled as static library, not DLL.

ghost commented 10 years ago

Solved. I had wrong Node.js version installed.