[Help] Cannot open include file: 'public_definitions.h' Src HunZ

Results 1 to 8 of 8
  1. #1
    Account Upgraded | Title Enabled! Returnerzx is offline
    MemberRank
    Apr 2011 Join Date
    236Posts

    [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?
    Last edited by GigaToni; 05-08-14 at 09:13 AM. Reason: Please stop using this icon. It's not necessary.


  2. #2
    Custom Title Enabled GigaToni is offline
    MemberRank
    Aug 2009 Join Date
    GER / FRLocation
    2,329Posts

    Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ

    change the include directories and add the teamspeak3 sdk.

  3. #3
    ImperiaMuCMS CEO jacubb is offline
    MemberRank
    Jul 2011 Join Date
    SlovakiaLocation
    1,507Posts

    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.

  4. #4
    Custom Title Enabled GigaToni is offline
    MemberRank
    Aug 2009 Join Date
    GER / FRLocation
    2,329Posts

    Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ

    Obviously you'll need to add the library path from ts3 sdk also.

  5. #5
    ImperiaMuCMS CEO jacubb is offline
    MemberRank
    Jul 2011 Join Date
    SlovakiaLocation
    1,507Posts

    Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ

    I have, look on screens.

    Includes:


    Libraries:


    And here is file content.

    ts3/inc:


    ts3/lib:


    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.

  6. #6
    Custom Title Enabled GigaToni is offline
    MemberRank
    Aug 2009 Join Date
    GER / FRLocation
    2,329Posts

    Re: [Help] Cannot open include file: 'public_definitions.h' Src HunZ

    Please search if the linker -> input (AdditionalDependencies) has the following vars:
    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

  7. #7
    ImperiaMuCMS CEO jacubb is offline
    MemberRank
    Jul 2011 Join Date
    SlovakiaLocation
    1,507Posts

    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

    But still I have problem with RSBuild, I don't have RSBuild.xml. Can I use it from RZCE or what can I do?
    Last edited by jacubb; 05-08-14 at 11:35 AM.

  8. #8
    Proficient Member eywasgeht is offline
    MemberRank
    Dec 2013 Join Date
    167Posts

    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



Advertisement