Skip to content

Won't compile for Objective-C++ project #1

Description

@nestserau

It took me some time to understand the odds, but the solution is quite simple. To make the logging functions compatible with Objective-C++ it's necessary to frame their declarations with:

#ifdef __cplusplus
extern "C"
{
#endif
...
#ifdef __cplusplus
}
#endif

Details as to why it's becoming an issue once clang++ is in play: http://stackoverflow.com/a/1041880/145046

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions