Sublime Forum

SublimeClang, Xcode 5

#1

Hi There,

I am trying to get the SublimeClang plugin working with Sublime Text2, however after setting up SublimeClang.sublime-settings I keep getting some errors.

Additional Info:
-OS X 10.8.5 (12F45)
-Xcode Version 5.0.2 (5A3005)

My SublimeClang.sublime-settings:

[code]{
“options”:

    "-Wall",
    "-I/System/Library/Frameworks",
    "-I/Library/Frameworks",
    "-I/usr/include",
    "-I/usr/lib/clang/5.0/include",
    "-I/Applications/Xcode5/Xcode.app/Contents/Developer/usr/lib/llvm-gcc/4.2.1/include/",
    "-isysroot",
    "/Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk",
    "/Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk",
    "-F/Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks",
    "-D__IPHONE_OS_VERSION_MIN_REQUIRED=50100"
],
"additional_language_options":
{
    "c++" :
    "-std=c++11"
    ],
    "c": ],
    "objc": ],
    "objc++": ]
}

}[/code]

Here are the errors:

:0,0 - Warning - /Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk: 'linker' input unused when '-fsyntax-only' is present :0,0 - Fatal - too many errors emitted, stopping now [Disable with -ferror-limit=0] :0,0 - Fatal - too many errors emitted, stopping now [Disable with -ferror-limit=0] /Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:791,32 - Error - expected ';' after top level declarator /Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:998,59 - Error - expected ';' after top level declarator /Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFURL.h:1002,57 - Error - expected ';' after top level declarator /Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFFileSecurity.h:283,99 - Error - expected function body after function declarator /Applications/Xcode5/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFXMLNode.h:150,35 - Error - expected function body after function declarator :0,0 - Fatal - too many errors emitted, stopping now [Disable with -ferror-limit=0]

I really appreciate it if someone could help me out.

Cheers,
-h

0 Likes

#2

Any one? :frowning:

0 Likes

#3

I was having similar problems in ST2 on Linux but they went away when I switched to using ST3. I had solved it in a previous Linux install with ST2 by updating clang and python but I can’t remember the details… I may have had to rebuild the clang plugin? Anyway, maybe migrating to ST3 will resolve the issue for you too. Good luck, merry Christmas, happy new year.

0 Likes

#4

Thank you Snark. I will give it a try.

Merry Christmas,

-H

0 Likes