[Help] Cannot open include file: 'public_definitions.h' Src HunZ
Error With WarZ_Server Build in Debug
Code:
Error 7 fatal error C1083: Cannot open include file: 'public_definitions.h': No such file or directory c:\vinnieshuda-hunz-project-c942a54cc2f0\server\src\supervisorserver\sources\teamspeak.h 3 SupervisorServer
and
Error 8 fatal error C1083: Cannot open include file: 'public_definitions.h': No such file or directory c:\vinnieshuda-hunz-project-c942a54cc2f0\server\src\supervisorserver\sources\teamspeak.h 3 SupervisorServer
How to fix it?
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
change the include directories and add the teamspeak3 sdk.
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
I had the same problem, and when I added includes and libraries for ts3 I had 8 new errors.
This is path what I added to includes and libraries:
Code:
C:\HunZ\src\External\ts3\lib
Errors when I added includes and libraries for ts3:
Code:
Error 8 error LNK2019: unresolved external symbol _ts3server_freeMemory referenced in function "void __cdecl onAccountingErrorEvent(unsigned __int64,unsigned int)" (?onAccountingErrorEvent@@YAX_KI@Z) teamspeak.obj SupervisorServer
Error 9 error LNK2019: unresolved external symbol _ts3server_getGlobalErrorMessage referenced in function "void __cdecl onAccountingErrorEvent(unsigned __int64,unsigned int)" (?onAccountingErrorEvent@@YAX_KI@Z) teamspeak.obj SupervisorServer
Error 10 error LNK2019: unresolved external symbol _ts3server_getServerLibVersion referenced in function "public: void __thiscall Teamspeak::Init(void)" (?Init@Teamspeak@@QAEXXZ) teamspeak.obj SupervisorServer
Error 11 error LNK2019: unresolved external symbol _ts3server_initServerLib referenced in function "public: void __thiscall Teamspeak::Init(void)" (?Init@Teamspeak@@QAEXXZ) teamspeak.obj SupervisorServer
Error 12 error LNK2019: unresolved external symbol _ts3server_destroyServerLib referenced in function "public: void __thiscall Teamspeak::Shutdown(void)" (?Shutdown@Teamspeak@@QAEXXZ) teamspeak.obj SupervisorServer
Error 13 error LNK2019: unresolved external symbol _ts3server_getVirtualServerKeyPair referenced in function "public: int __thiscall Teamspeak::CreateVirtualServer(void)" (?CreateVirtualServer@Teamspeak@@QAEHXZ) teamspeak.obj SupervisorServer
Error 14 error LNK2019: unresolved external symbol _ts3server_createVirtualServer referenced in function "public: int __thiscall Teamspeak::CreateVirtualServer(void)" (?CreateVirtualServer@Teamspeak@@QAEHXZ) teamspeak.obj SupervisorServer
Error 15 error LNK2019: unresolved external symbol _ts3server_getChannelList referenced in function "public: void __thiscall Teamspeak::CreateChannel(void)" (?CreateChannel@Teamspeak@@QAEXXZ) teamspeak.obj SupervisorServer
But this errors appears only in debug mode, in release it's ok.
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
Obviously you'll need to add the library path from ts3 sdk also.
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
I have, look on screens.
Includes:
http://i.imgur.com/n4iYe7N.jpg
Libraries:
http://i.imgur.com/OJsqXkR.jpg
And here is file content.
ts3/inc:
http://i.imgur.com/25lUduu.jpg
ts3/lib:
http://i.imgur.com/4ih1TYu.jpg
As default are files were in folder lib, but I separeted them. Anyways, it didn't work when they were in 1 folder together and I had includes and libraries for this folder.
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
Please search if the linker -> input (AdditionalDependencies) has the following vars:
Quote:
dbghelp.lib winmm.lib ws2_32.lib strsafe.lib d3dx9d.lib d3d9.lib dinput8.lib dxguid.lib xinput.lib iphlpapi.lib fmodex_vc.lib fmod_event.lib fmod_event_net.lib ChilkatDbg.lib rpcrt4.lib dnsapi.lib crypt32.lib Shlwapi.lib odbc32.lib odbccp32.lib wbemuuid.lib psapi.lib gdiplus.lib libcurl.lib wldap32.lib ts3client_win32.lib binkw32.lib
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
Ok so I checked all libraries, all paths are in libraries settings. I restarted VS and Tried to recompile solution on debug, but I get still the same errors (unresolved external symbol). I found, that this error is usually, when I have declaration, but function's definion is missing. I checked it and I have declaration and definition too so I have no idea what's wrong.
EDIT: Fixed, I added libraries and includes just for release mode, not for debug :huh:
But still I have problem with RSBuild, I don't have RSBuild.xml. Can I use it from RZCE or what can I do?
Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ
yes you can use all rsbuild.xml its are the same :)
edit it and all is fine
greetings
eywasgeht