David this is a simple test program.
hello3.m
===================
#include <objc/Object.h>
@interface Greeter:Object
{
/* This is left empty on purpose:
** Normally instance variables would be declared here,
** but these are not used in our example.
*/
}
- (void)greet;
@end
@implementation Greeter
- (void)greet
{
printf("Hello, World!\n");
}
@end
int main(void)
{
id myGreeter;
myGreeter=[Greeter new];
[myGreeter greet];
[myGreeter free];
return 1;
}
--
View this message in context:
http://old.nabble.com/Problem-with-libobjc2-tp28990319p28997166.html
Sent from the GNUstep - Dev mailing list archive at Nabble.com.
_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev