discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't use NSLog and other question


From: Yen-Ju Chen
Subject: Can't use NSLog and other question
Date: Thu, 19 Apr 2001 23:42:35 -0400

  I have two questions and hope you can help me.

  1. I try to use NSLog to print something,
  but it always core dumped:

bash-2.04# openapp Test.app/
Virtual memory exhausted
Aport trap - core dumped

  My source code is very simple:

#include <Foundation/Foundation.h>

int main (void)
{
  NSLog(@"Test");
}

  I can compile and run other GNUstep program without any problem.
  Is it the problem on FreeBSD or only happen to me ?
  Now I can only use [NSFileHandle fileHandleWithStandardOutput].
  It works fine, but I just want to make sure it is not my problem.

  2. when I compile some programs I wrote, I always got some warnings like
this:

  /usr/libexec/elf/ld: warning: type and size of dynamic symbol
'__objc_class_name
 _NSFileHandle' are not defined

  If I use NSAutoreleasePool, for example, I will got the warning about
__objc_class_name
  _NSAutoreleasePool are not defined.

  But the program can run without any problem.
  I just wonder whether I could get rid of these warning.

  Thanx you for your help.
  If I could solve these problems, I could convince my boss to use GNUstep
for
  our scientific program.

  Thanx again.

  Yen-Ju




reply via email to

[Prev in Thread] Current Thread [Next in Thread]