panJames
asked on
LINK : fatal error LNK1104: cannot open file 'dplayx.lib', when trying to compile Dark GDK
Hello experts :-)
I am Visual C++ newbie.
I am trying to build and run sample projects provided with Visual C++ 2008 express edition but get such an error:
LINK : fatal error LNK1104: cannot open file 'dplayx.lib'
I have this file in two locations on my computer:
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x64
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
Question:
how do I guide VC++ to find/ open this file?
And which one to choose?
Thank u
panJames
I am Visual C++ newbie.
I am trying to build and run sample projects provided with Visual C++ 2008 express edition but get such an error:
LINK : fatal error LNK1104: cannot open file 'dplayx.lib'
I have this file in two locations on my computer:
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x64
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
Question:
how do I guide VC++ to find/ open this file?
And which one to choose?
Thank u
panJames
Did you set the path of the library directory to your project setting?
ASKER
How can I do it?
panJames
panJames
http://msdn.microsoft.com/en-us/library/wkze6zky(VS.80).aspx
Right click on Solution, then click on References then add the path
Right click on Solution, then click on References then add the path
ASKER
I did add my path into:
<right click> References -> Framework and References -> Add Path
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
but it didn't help and I still get the same error message:
------ Build started: Project: Dark Dungeon, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file 'dplayx.lib'
Build log was saved at "file://d:\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9\Dark Dungeon\Release\BuildLog.h tm"
Dark Dungeon - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
panJames
<right click> References -> Framework and References -> Add Path
D:\Program Files\Microsoft DirectX SDK (August 2007)\Lib\x86
but it didn't help and I still get the same error message:
------ Build started: Project: Dark Dungeon, Configuration: Release Win32 ------
Linking...
LINK : fatal error LNK1104: cannot open file 'dplayx.lib'
Build log was saved at "file://d:\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9\Dark Dungeon\Release\BuildLog.h
Dark Dungeon - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
panJames
can you see the file in the Game directory?
if not install it from here:http://www.cubic.org/player/doc/node69.htm
Also see this
if not install it from here:http://www.cubic.org/player/doc/node69.htm
Also see this
ASKER
I copied dplayx.lib to Game folder, now it compiles (why do I need to copy lib files into the Game folder anyway?). Now I get a bunch of other error messages:
------ Build started: Project: Dark Dungeon, Configuration: Release Win32 ------
Linking...
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPSPGUID_TCPIP referenced in function "public: int __thiscall CNetwork::SetNetConnection s(int)" (?SetNetConnections@CNetwo rk@@QAEHH@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPSPGUID_IPX referenced in function "public: int __thiscall CNetwork::SetNetConnection s(int)" (?SetNetConnections@CNetwo rk@@QAEHH@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _CLSID_DirectPlay referenced in function "private: static int __stdcall CNetwork::StaticGetConnect ion(struct _GUID const *,void *,unsigned long,struct DPNAME const *,unsigned long,void *)" (?StaticGetConnection@CNet work@@CGHP BU_GUID@@P AXKPBUDPNA ME@@K1@Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _IID_IDirectPlay4A referenced in function "private: static int __stdcall CNetwork::StaticGetConnect ion(struct _GUID const *,void *,unsigned long,struct DPNAME const *,unsigned long,void *)" (?StaticGetConnection@CNet work@@CGHP BU_GUID@@P AXKPBUDPNA ME@@K1@Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPAID_ComPort referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPSPGUID_SERIAL referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPAID_Phone referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPSPGUID_MODEM referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPAID_INet referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _DPAID_ServiceProvider referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
multiplayer.lib(CNetwork.o bj) : error LNK2019: unresolved external symbol _IID_IDirectPlayLobby2A referenced in function "public: int __thiscall CNetwork::FindNetSessions( char *)" (?FindNetSessions@CNetwork @@QAEHPAD@ Z)
.\Release/Dark Dungeon.exe : fatal error LNK1120: 11 unresolved externals
Build log was saved at "file://d:\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9\Dark Dungeon\Release\BuildLog.h tm"
Dark Dungeon - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
panJames
------ Build started: Project: Dark Dungeon, Configuration: Release Win32 ------
Linking...
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
multiplayer.lib(CNetwork.o
.\Release/Dark Dungeon.exe : fatal error LNK1120: 11 unresolved externals
Build log was saved at "file://d:\Program Files\The Game Creators\Dark GDK\Samples\Visual Studio 9\Dark Dungeon\Release\BuildLog.h
Dark Dungeon - 12 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
panJames
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.