expected function body error

what does Xcode mean when it has a Parse Issue 'expected function body after function declarator'?

here's my codeing--

//

// main.m

// WhatATool

//

// Created by mac on 7/1/11.

// Copyright 2011 __MyCompanyName__. All rights reserved.

//


#import <Foundation/Foundation.h>

//

void PrintPathInfo()

+ (NSString *)stringByExpandingTildeInPath //this is the line the error appears on

{

NSString *path = @"~";

}


int main (int argc, const char * argv[])

{

NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];


PrintPathInfo();

PrintProcessInfo();

PrintBookmarkInfo();

PrintIntrospectionInfo();


[pool release];

return 0;

}

Posted on Jul 1, 2011 11:37 AM

Reply
3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

expected function body error

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.