Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Deprecated examples: TurnBasedMultiplayerEvent deprecated. #15

Closed

Description

@stolk

Is there a cpp multi player example that does not use deprecated API calls?

When building cpp version of ButtonClicker, I get:

bram@ubuntu64:~/src/cpp-android-basic-samples/samples-android/ButtonClicker$ ndk-build
[armeabi-v7a] Compile++ thumb: ButtonClickerNativeActivity <= ButtonClickerNativeActivity.cpp
In file included from jni/ButtonClickerNativeActivity.cpp:28:
In file included from jni/ButtonClickerNativeActivity.h:28:
In file included from /home/bram/android-ndk-r10e-64/sources/cxx-stl/llvm-libc++/libcxx/include/sstream:174:
In file included from /home/bram/android-ndk-r10e-64/sources/cxx-stl/llvm-libc++/libcxx/include/ostream:131:
In file included from /home/bram/android-ndk-r10e-64/sources/cxx-stl/llvm-libc++/libcxx/include/ios:216:
In file included from /home/bram/android-ndk-r10e-64/sources/cxx-stl/llvm-libc++/libcxx/include/__locale:21:
In file included from /home/bram/android-ndk-r10e-64/sources/cxx-stl/llvm-libc++/../../android/support/include/locale.h:39:
/home/bram/android-ndk-r10e-64/platforms/android-9/arch-arm/usr/include/locale.h:55:1: warning: >empty struct has size 0 in C,
size 1 in C++ [-Wextern-c-compat]
struct lconv { };
^
jni/ButtonClickerNativeActivity.cpp:71:48: warning: 'TurnBasedMultiplayerEvent' is deprecated >[-Wdeprecated-declarations]
gpg::TurnBasedMultiplayerEvent::UPDATED_FROM_APP_LAUNCH) {
^
/home/bram/src/gpg-cpp-sdk/android/include/gpg/types.h:247:26: note: >'TurnBasedMultiplayerEvent' has been explicitly marked
deprecated here
typedef MultiplayerEvent TurnBasedMultiplayerEvent GPG_DEPRECATED;
^
2 warnings generated.

Activity

  1. claywilkinson commented on Jan 19, 2018

    @claywilkinson
    Contributor

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions