D:\Dev\Workspaces\Nax\Github\node-opc>node-gyp rebuild
gyp info it worked if it ends with ok
gyp info using node-gyp@0.10.10
gyp info using node@0.10.20 | win32 | x64
gyp info spawn python
gyp info spawn args [ 'C:\\Users\\Mohammed\\AppData\\Roaming\\npm\\node_modules\
\node-gyp\\gyp\\gyp',
gyp info spawn args 'binding.gyp',
gyp info spawn args '-f',
gyp info spawn args 'msvs',
gyp info spawn args '-G',
gyp info spawn args 'msvs_version=auto',
gyp info spawn args '-I',
gyp info spawn args 'D:\\Dev\\Workspaces\\Nax\\Github\\node-opc\\build\\config
.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Mohammed\\AppData\\Roaming\\npm\\node_modules\
\node-gyp\\addon.gypi',
gyp info spawn args '-I',
gyp info spawn args 'C:\\Users\\Mohammed\\.node-gyp\\0.10.20\\common.gypi',
gyp info spawn args '-Dlibrary=shared_library',
gyp info spawn args '-Dvisibility=default',
gyp info spawn args '-Dnode_root_dir=C:\\Users\\Mohammed\\.node-gyp\\0.10.20',
gyp info spawn args '-Dmodule_root_dir=D:\\Dev\\Workspaces\\Nax\\Github\\node-
opc',
gyp info spawn args '--depth=.',
gyp info spawn args '--generator-output',
gyp info spawn args 'D:\\Dev\\Workspaces\\Nax\\Github\\node-opc\\build',
gyp info spawn args '-Goutput_dir=.' ]
gyp info spawn C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
gyp info spawn args [ 'build/binding.sln',
gyp info spawn args '/clp:Verbosity=minimal',
gyp info spawn args '/nologo',
gyp info spawn args '/p:Configuration=Release;Platform=x64' ]
Die Projekte in dieser Projektmappe werden nacheinander erstellt. Um eine parall
ele Erstellung zu ermöglichen, müssen Sie den Schalter "/m" hinzufügen.
OPCItemData.cpp
OPCItem.cpp
OPCGroup.cpp
Transaction.cpp
OPCProperties.cpp
OPCHost.cpp
OPCServer.cpp
opcda_i.c
OpcEnum_i.c
opccomn_i.c
OPCItem.obj : error LNK2001: Nicht aufgel÷stes externes Symbol ""public: static
void __cdecl COPCClient::comFreeVariant(struct tagVARIANT *,unsigned int)" (?c
omFreeVariant@COPCClient@@SAXPEAUtagVARIANT@@I@Z)". [D:\Dev\Workspaces\Nax\Gith
ub\node-opc\build\opctoolkit.vcxproj]
OPCItem.obj : error LNK2001: Nicht aufgel÷stes externes Symbol ""public: static
void __cdecl COPCClient::comFree(void *)" (?comFree@COPCClient@@SAXPEAX@Z)". [
D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCGroup.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCAsyncI
O2". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCGroup.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCItemMg
t". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCGroup.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCDataCa
llback". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCGroup.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCGroupS
tateMgt". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCGroup.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCSyncIO
". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCHost.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "CLSID_OpcServer
List". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCHost.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCServer"
. [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCHost.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCServerL
ist". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
OPCServer.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCBrows
eServerAddressSpace". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.v
cxproj]
OPCServer.obj : error LNK2001: Nicht aufgel÷stes externes Symbol "IID_IOPCItemP
roperties". [D:\Dev\Workspaces\Nax\Github\node-opc\build\opctoolkit.vcxproj]
D:\Dev\Workspaces\Nax\Github\node-opc\build\Release\opctoolkit.dll : fatal erro
r LNK1120: 12 nicht aufgel÷ste Externe [D:\Dev\Workspaces\Nax\Github\node-opc\b
uild\opctoolkit.vcxproj]
gyp ERR! build error
gyp ERR! stack Error: `C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Users\Mohammed\AppData\Roaming\npm
\node_modules\node-gyp\lib\build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:
12)
gyp ERR! System Windows_NT 6.2.9200
gyp ERR! command "node" "C:\\Users\\Mohammed\\AppData\\Roaming\\npm\\node_module
s\\node-gyp\\bin\\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Dev\Workspaces\Nax\Github\node-opc
gyp ERR! node -v v0.10.20
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
D:\Dev\Workspaces\Nax\Github\node-opc>
i hope u can help me :( i think there is only a missing flag or sth like this. Because, if i create a new win32 console project in vs2012 and add the file - it works all well :/
Hey Guys,
Normal Building Process works absolutly well but the delecious problem seems to fck me really hard...
Example Projects like HelloWorld and other (only C++) can be compiled, linked and used.
(posted this issue on stackoverflow without any solutions: http://stackoverflow.com/questions/19089816/c-node-js-got-error-lnk-2001)
Here u can find a example project which demonstrate this error (on my mashine): https://github.com/NaxChefkoch/node-opc
(This Commit has my first test: https://github.com/NaxChefkoch/node-opc/tree/c79638b2c6c123f7da58c202049bcc950e94c984) (This Commit has my second test :https://github.com/NaxChefkoch/node-opc/tree/2b10ae4a9239f05d0095674456aee58cd47405cf)
i hope u can help me :( i think there is only a missing flag or sth like this. Because, if i create a new win32 console project in vs2012 and add the file - it works all well :/