Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Name collision when compiling a Poco-based Cocoa app in Xcode #1693

Closed
jayfuerstenberg opened this issue Apr 17, 2017 · 2 comments
Closed

Name collision when compiling a Poco-based Cocoa app in Xcode #1693

jayfuerstenberg opened this issue Apr 17, 2017 · 2 comments

Comments

@jayfuerstenberg
Copy link

jayfuerstenberg commented Apr 17, 2017

The NumericString.h file in Poco 1.7.8 has a private method Ptr::check which conflicts with macOS 10.12's check macro (in AssertMacros.h - line 1291) and this thwarts the compilation of Cocoa apps.

Renaming the Ptr::check method (ex: isInRange) or surrounding the class with #undef check + #define check appears to resolve the issue.

  • OS: macOS 10.12.2
  • IDE: Xcode 8.3
  • Poco Version: 1.7.8
  • Target SDK: OS X 10.8

error-location
macos-check

@jacobsologub
Copy link
Contributor

Still an issue as of poco-1.8.1

@aleks-f
Copy link
Member

aleks-f commented Jan 17, 2018

@obiltschnig fixed only in develop, duplicate #1451

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

No branches or pull requests

4 participants