🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Florian Wolpert Tue, 26 Jan 1993 09:14
objc.h broken ?
#888
Author: Florian Wolpert
Date: Tue, 26 Jan 1993 09:14
61 lines
1989 bytes
Hi ObjC-users,

i have just installed gcc 2.3.2 with the objc-frontend and tried to compile
(not even link) a short example objc-file. But following happens:

prompt> gcc -I/src/gnu/gcc-2.3.2 Int.m -c
..
[warning about #import deleted]
..
In file included from /src/gnu/gcc-2.3.2/objc/Object.h:29, from Int.m:2:
/src/gnu/gcc-2.3.2/objc/objc.h:346: parse error before `va_list'
prompt>

The line 346 in objc.h looks like this:
extern void (*_error)(id object, const char *fmt, va_list ap);

now my question; what is wrong with objc.h ? how can i fix the error ?

The source :
---------------------------- Int.m -------------------------------------
#import <stdio.h>
#import <objc/Object.h>
#import "Int.h"

@implementation Int: Object     // Int is derived from Object

+ makeRoomFor: (int) i
{
  id  anInstance;

  anInstance  = [super new];
  value = i;
  return anInstance;
}

- report
{
  printf("%4d", value);
  return self;
}

@end

---------------------------- Int.h -------------------------------------
@interface Int: Object     // Int is derived from Object
{
    int value;          // This is the data portion.  Like a struct.
}
+ makeRoomFor: (int) i;
- report;

@end
------------------------------------------------------------------------

thanks for helping - flo.

--
2i-d&s : wolpert%dandsnx.uucp@germany.eu.net (NeXTmail preferred)
Hellige : wolpert%ppgfr.uucp@germany.eu.net
uni-fr  : wolpert@informatik.uni-freiburg.de
snail-mail to 2i Industrial Informatics, Haierweg 20e, D-7800 Freiburg
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads