delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/01/13/09:21:04

Date: Thu, 13 Jan 1994 14:49:59 +0100
From: terra AT diku DOT dk
To: ESCHN705 AT rz DOT braunschweig DOT ptb DOT d400 DOT de
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: test.cc

   From: ESCHN705 AT rz DOT braunschweig DOT ptb DOT d400 DOT de
   Sender: ESCHN705 AT rz DOT braunschweig DOT ptb DOT d400 DOT de

   // Hello!
   //
   // I'm in some trouble and I'm afraid that it's me who caused it.
   // However, I'm not able to understand what's going on.
   // djgpp 1.11 (maint1) complains about the lines marked with "?????":
   //
   // "called object is not a function"
   //
   // I compiled it with "gcc -Wall test.cc".
   //
   // Any hints? Thomas
   //
   //

[...]
 
   int main(void)
   {
     int    n, na, nb, ng;
     rstern rstrn;

     for (n = c1; n <= d6h; n++)
       for (na = 0; na < 4; na++)
	 for (nb = 0; nb < 3; nb++)
	   for (ng = 0; ng < 4; ng++)
	   {
	     make_rstar(na*M_PI/2,
			nb*M_PI/2,
			ng*M_PI/2,
			dg(PunktGruppe(n)),&rstrn);
	     if (ng(dg(PunktGruppe(n))) != rstrn.strahlenzahl) // ?????
-----------------^^
	       printf("Gruppe %s: %d/%d Elemente (%d/2,%d/2,%d/2)*PI\n",
		       gn(PunktGruppe(n)),
		       ng(dg(PunktGruppe(n))),
-----------------------^^
		       rstrn.strahlenzahl,                     // ?????
		       na,nb,ng);
	   }
     printf("Ansonsten alles o.k.\n");
   }

"ng" is an integer.  (And gcc is off-by-one with its last line number.)

Morten Welinder
terra AT diku DOT dk

- Raw text -


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