Photon C++ Client API
4.1.12.2
|
Use IDE of your choice or makefiles.
1. In Code::Blocks IDE right-click on your project, go to "Build Options" and go to "Search directories".
2. In the "Compiler" tab add paths to the parent-folder(s) of the Common-cpp/inc and Photon-cpp/inc directories.
3. In the "Linker" tab add paths to Common-cpp and Photon-cpp directories.
4. For each target of your project go to its "Linker settings" tab left to "Search directories". Add PhotonDebug64 and CommonDebug64 libraries for the debug or PhotonRelease64 and CommonRelease64 for the release configuration for 64 bit builds, or replace the "64" by "32" for 32bit builds. The order of the libraries is important for a successful build. The prefix 'lib' and the extension 'a' are added automatically.
5. In the projects "Linker settings" tab add -pthread to "Other linker options".
6. Add the following #include directive to your source-code:
#include "Photon-cpp/inc/PhotonPeer.h"