www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/07/15:53:30

Xref: news2.mv.net comp.os.msdos.djgpp:2522
From: wiz AT iconz DOT co DOT nz (Nic Wise)
Newsgroups: comp.os.msdos.djgpp
Subject: DJGPP and Obj-C - a little help needed.
Date: 7 Apr 1996 04:08:51 GMT
Organization: Internet Company of New Zealand
Lines: 44
Message-ID: <4k7f4k$f8o@status.gen.nz>
NNTP-Posting-Host: iconz.co.nz
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!!

  I just re-DL'ed DJGPP v2, got the objective C stuff, but I _still_ can't 
get my code to work :(

It compiles fine, with no wanrings or errors, and to me (ok, it is my first
Obj-C program, but anyway) it looks fine. Its a cut down copy of an
example we got from our lecturer.

SO: Are there any special switches to stop if throwing a SIGFPE
when it calls the following:

	id t = [[Thing alloc] init];

I assume that FPE = Floating point exception, but on a 486dx4? I think not.

The class has an integer, and 3 methods that print, set and retreive it.
VERY simple stuff.

I'm linking it with:

	gcc -o main test.o driver.o -lobjc -lm

and compiling the other bits with:

	gcc -c -Wno-import name.m

Any ideas?? Is this a (known) problem?

oh, and GDB thinks its something to do with the allocation of the 
classes memory.....

Ta in advance!

Nic.

(BTW, using GCC 2.7.2, straight off the NZ SimTel mirror, on a
486dx4-100 with 24 megs of ram, lots a disk, under Win95)

-- 
       Nic Wise - wiz AT iconz DOT co DOT nz - http://iconz.co.nz/~wiz
            also: nicw AT bytes DOT gen DOT nz, nicw AT xerxes DOT co DOT nz
       Pascal-a-holic, Underwater Hockey player, and X-Phile.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019