www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/15/23:15:35

Date: 15 Jan 1994 19:25:45 -0800 (PST)
From: Gregory Eakin <XGEAKIN AT CCVAX DOT FULLERTON DOT EDU>
Subject: Re: compiling NEWMAT07 with djgpp
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Cc: gapa83 AT udcf DOT gla DOT ac DOT uk

Dear Paul,
 
To get NEWMAT07 to compile with djgpp you need to add an "inline" to
the Rectangular class inside the MatrixType class.  This is about
line 149 of newmat.h.
 
like this:
    . . .
    class MatrixType
    {
    public:
    . . .
    inline  <--- I added this.
    friend Boolean Rectangular(MatrixType a, MatrixType b, MatrixType c)
      { return ((a.attribute | b.attribute | c.attribute)
          & ~MatrixType::Valid) == 0; }
    . . .
 
This causes all to compile and link O.K.  But some tests still don't run.
I'm at a loss to explain why.
 
-- Greg
 
PS
    There is #ifdef's sprinkled in the code for GNUG compiler, but the
latest version of djgpp do not need any of these patches.

- Raw text -


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