Compile / Link Errors xcode 9.1 ue4.18 PhotonDemoParticle

Options
Hi
I have downloaded
I am not able to build demo cause of a few errors as follows


(1)=====================================================================================
/ue4/PhotonDemoParticle-UE4/Source/PhotonDemoParticle/demo_particle_common/Console.cpp:6:9: error: binding dereferenced null pointer to reference has undefined behavior [-Werror,-Wnull-dereference]
: mImp(*reinterpret_cast(NULL))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


(2)====================================================================================
ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/JVector.h:572:98: error: instantiation of variable 'ExitGames::Common::Helpers::ToStringImplementation::converter' required here, but no definition is available [-Werror,-Wundefined-var-template]
return retStr += Helpers::ToStringImplementation::is, Etype>::converter.toString(this->mpData, this->getSize());
^
/ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/JVector.h:37:12: note: in instantiation of member function 'ExitGames::Common::JVector::toString' requested here
virtual ~JVector(void);
^
/ue4/PhotonDemoParticle-UE4/Source/Photon/./LoadBalancing-cpp/inc/AuthenticationValues.h:23:9: note: in instantiation of member function 'ExitGames::Common::JVector::~JVector' requested here
class AuthenticationValues : public Common::Base
^
/ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/Helpers/ToStringImplementation.h:33:46: note: forward declaration of template entity is here
static PrimitiveToStringConverter converter;
^
/Users/peter/dev/photon/ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/JVector.h:572:98: note: add an explicit instantiation declaration to suppress this warning if 'ExitGames::Common::Helpers::ToStringImplementation::converter' is explicitly instantiated in another translation unit
return retStr += Helpers::ToStringImplementation::is, Etype>::converter.toString(this->mpData, this->getSize());

ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/JVector.h:572:98: error: instantiation of variable 'ExitGames::Common::Helpers::ToStringImplementation::converter' required here, but no definition is available [-Werror,-Wundefined-var-template]
return retStr += Helpers::ToStringImplementation::is, Etype>::converter.toString(this->mpData, this->getSize());
^
/Users/peter/dev/photon/ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/JVector.h:37:12: note: in instantiation of member function 'ExitGames::Common::JVector::toString' requested here
virtual ~JVector(void);
^
/Users/peter/dev/photon/ue4/PhotonDemoParticle-UE4/Source/Photon/./LoadBalancing-cpp/inc/AuthenticationValues.h:23:9: note: in instantiation of member function 'ExitGames::Common::JVector::~JVector' requested here
class AuthenticationValues : public Common::Base
^
/Users/peter/dev/photon/ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/Helpers/ToStringImplementation.h:33:46: note: forward declaration of template entity is here
static PrimitiveToStringConverter converter;
^
/Users/peter/dev/photon/ue4/PhotonDemoParticle-UE4/Source/Photon/./Common-cpp/inc/JVector.h:572:98: note: add an explicit instantiation declaration to suppress this warning if 'ExitGames::Common::Helpers::ToStringImplementation::converter' is explicitly instantiated in another translation unit
return retStr += Helpers::ToStringImplementation::is, Etype>::converter.toString(this->mpData, this->getSize());

Comments

  • petergpls
    Options
    Also should mention that this is using the latest version of the SDK and demo
  • Kaiserludi
    Options
    Hi @petergpls.

    We have just released an update to Photon UE demo project, that makes it compatible with UE4.18.

    Please re-download the demo zip and try again.

    Also please replace the version of ToStringImplementation.h that ships with version 4.1.8.1 of the Client SDK with the version at https://www.dropbox.com/s/7zke9qaviu1tejz/ToStringImplementation.h?dl=1.

    This new version of the file includes a fix for those "instantiation of variable 'ExitGames::Common::Helpers::ToStringImplementation::converter' required here, but no definition is available" errors that you can see.

    Versions of Xcode prior to 9.1 did not throw this error, so this issue only popped up recently.

    We will of course include this fix with the next release.