Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Error glog static library for android  #247

@Guozht

Description

@Guozht

Using the GLOG static library in Android studio (using NDK cross compiling chain) to report errors:

../../../../src/main/jniLibs/armeabi-v7a/libgflags.a(gflags_completions.cc.o):gflags_completions.cc:function google::(anonymous namespace)::PrintFlagCompletionInfo(): error: undefined reference to 'stdout'
../../../../src/main/jniLibs/armeabi-v7a/libglog.a(logging.cc.o):logging.cc:function google::ColoredWriteToStderr(int, char const*, unsigned int): error: undefined reference to 'stderr'
../../../../src/main/jniLibs/armeabi-v7a/libglog.a(logging.cc.o):logging.cc:function google::WriteToStderr(char const*, unsigned int): error: undefined reference to 'stderr'
../../../../src/main/jniLibs/armeabi-v7a/libglog.a(logging.cc.o):logging.cc:function google::(anonymous namespace)::LogFileObject::Write(bool, long, char const*, int): error: undefined reference to 'posix_fadvise'
../../../../src/main/jniLibs/armeabi-v7a/libglog.a(logging.cc.o):logging.cc:function google::(anonymous namespace)::LogFileObject::Write(bool, long, char const*, int): error: undefined reference to 'stderr'
../../../../src/main/jniLibs/armeabi-v7a/libglog.a(logging.cc.o):logging.cc:function google::SendEmailInternal(char const*, char const*, char const*, bool): error: undefined reference to 'stderr'
../../../../src/main/jniLibs/armeabi-v7a/libglog.a(logging.cc.o):logging.cc:function google::posix_strerror_r(int, char*, unsigned int): error: undefined reference to '__gnu_strerror_r'
../../../../src/main/jniLibs/armeabi-v7a/libgflags.a(gflags_reporting.cc.o):gflags_reporting.cc:function google::ShowUsageWithFlagsMatching(char const*, std::vector<std::string, std::allocatorstd::string > const&): error: undefined reference to 'stdout'
../../../../src/main/jniLibs/armeabi-v7a/libgflags.a(gflags_reporting.cc.o):gflags_reporting.cc:function google::HandleCommandLineHelpFlags(): error: undefined reference to 'stdout'

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