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

language-objc fails to preprocess & parse Foundation header on OSX 10.11 #3

Open
iand675 opened this issue Oct 26, 2016 · 0 comments
Open

Comments

@iand675
Copy link

iand675 commented Oct 26, 2016

The following code fails when it hits the math.h header:

import Language.ObjC
import Language.ObjC.System

-- Example framework header location /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Cocoa.framework/Headers/Cocoa.h

main :: IO ()
main = print =<< parseCFile (newGCC "clang") Nothing  [] "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"

Results in:

Left /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/math.h:565: (column 72) [ERROR]  >>> Syntax Error !
  Syntax error !
  The symbol `=' does not fit here.

I've tried specifying both gcc and clang as the compiler, but neither works.

@iand675 iand675 changed the title language-objc fails to preprocess & parse Foundation header on OSX 10.10 language-objc fails to preprocess & parse Foundation header on OSX 10.11 Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant