www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/06/09/22:41:10

From: tiggr AT ics DOT ele DOT tue DOT nl (Pieter Schoenmakers)
Newsgroups: comp.lang.objective-c,comp.os.msdos.djgpp
Subject: Re: Fixed DJGPP libobc.a?
Date: 09 Jun 1997 22:00:18 +0200
Organization: Eindhoven University of Technology
Lines: 20
Sender: tiggr AT tom DOT ics DOT ele DOT tue DOT nl
Message-ID: <x7206b7dil.fsf@tom.ics.ele.tue.nl>
References: <5nh9sr$mfm AT saturn DOT brighton DOT ac DOT uk>
NNTP-Posting-Host: tom.ics.ele.tue.nl
In-reply-to: je@bton.ac.uk's message of 9 Jun 1997 16:10:03 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <5nh9sr$mfm AT saturn DOT brighton DOT ac DOT uk> je AT bton DOT ac DOT uk (John English) writes:

   I'm trying to get DJGPP Objective-C working (the distribution
   version SIGFPEs whether you do *anything*)

This might work.  Put it in your program, in main, before the first
Objective-C call.

  {
    volatile short cw;

    __asm__ volatile ("fstcw (%0)" : : "g" (&cw));
    cw |= 1;			/* Mask the `invalid' exception.  */
    __asm__ volatile ("fldcw (%0)" : : "g" (&cw));
  }

Please tell me if it works, and which version of DJGPP you're using.

If it doesn't, libobjc.a is part of the GNU CC distribution, available
from the usual GNU mirrors.  --Tiggr

- Raw text -


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