• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
confusing error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

confusing error


  • Subject: confusing error
  • From: Roland Silver <email@hidden>
  • Date: Sat, 27 Sep 2008 19:54:00 -0400

I don't understand either the following error or how to fix it.

In Notify.m:
#import "Controller.h"
#import "Structs.h"
#import "Support.h"
#import "Notify.h"

//global variables
#define _BUFFERLENGTH 1000
char _buffer[_BUFFERLENGTH+1]; //for use by failure

//C-functions

int foobar(void) {return 0; }
error: nested functions are disabled, use ...
error: static declaration of 'foobar' follows non-static declaration

In Notify.h:
//#import "common.h"
#import "Mark.h"
//struct Mark;

//C-functions
//void alertPanel(NSString* title, const char* template, ...);
//void fatal(NSString* format, ...);
//void fatalOSErr(OSStatus errcode, NSString *msg);
void myLog(NSString* format, ...);
void myTerminate(void);
//void post(NSString* format, ...);
//void postError(NSString* format, ...);
void postLoudness(NSString *msg, Loudness* loudness, int indent);
void postMark(NSString *msg, Mark *mark, int indent);
//void postNoEOL(NSString* format, ...);
void postNote(NSString *msg, Note* note, int indent);
//void postPieceError(NSString* pieceText);
void postRest(NSString *msg, Rest* rest, int indent);
void postScale(NSString *msg, Scale* scale, int indent);
void postSubmark(NSString *msg, Mark* mark, int indent);
void postTempo(NSString *msg, Tempo* tempo, int indent);
void postMarkArray(NSString *msg, MarkArray *markArray, int indent);
NSString* typeToString(int elementType);
int foobar(void);

These are only two occurrences of the term "foobar" in my program.

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Re: stack size
  • Next by Date: Re: confusing error
  • Previous by thread: XCode won't use static library
  • Next by thread: Re: confusing error
  • Index(es):
    • Date
    • Thread