0

上記のように、android_npapi.hは、この時点で上記のタイプの複数のエラーを提供します。

struct ANPInterface {
    uint32_t    inSize;     // size (in bytes) of this struct
};

enum ANPLogTypes {
    kError_ANPLogType   = 0,    // error
    kWarning_ANPLogType = 1,    // warning
    kDebug_ANPLogType   = 2     // debug only (informational)
};
typedef int32_t ANPLogType;

struct ANPLogInterfaceV0 : ANPInterface {
    /** dumps printf messages to the log file
        e.g. interface->log(instance, kWarning_ANPLogType, "value is %d", value);
     */
    void (*log)(ANPLogType, const char format[], ...);
};

struct ANPBitmapInterfaceV0 : ANPInterface {
    /** Returns true if the specified bitmap format is supported, and if packing
        is non-null, sets it to the packing info for that format.
     */
    bool (*getPixelPacking)(ANPBitmapFormat, ANPPixelPacking* packing);
};

「structANPLogInterfaceV0:ANPInterface」から開始して、ANPInterfaceの継承を含むすべての構造体定義で上記のエラーが発生します。

上記のヘッダーファイルの詳細については、android_npapi.hをご覧ください。

4

1 に答える 1

1

それをCまたはC++として含むコードをコンパイルしようとしていますか?そのヘッダーは構造体の継承を使用します。つまり、C++としてコンパイルする必要があります。

于 2013-02-20T09:18:39.147 に答える