From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.redhat.com (mail.redhat.com [199.183.24.239]) by listman.redhat.com (Postfix) with ESMTP id 8DC292FDEC for ; Wed, 1 Nov 2000 18:43:21 -0500 (EST) Received: (from mail@localhost) by mail.redhat.com (8.11.0/8.8.7) id eA1NhB200651 for axp-list@listman.redhat.com; Wed, 1 Nov 2000 18:43:11 -0500 Received: from paralleldata.com (smtp.paralleldata.com [38.153.145.2]) by mail.redhat.com (8.11.0/8.8.7) with ESMTP id eA1NhAD00643 for ; Wed, 1 Nov 2000 18:43:10 -0500 Received: by paralleldata.com from localhost (router,SLMail V2.5); Wed, 01 Nov 2000 17:50:57 -0600 Received: by paralleldata.com from paralleldata.com (65.3.53.39::mail daemon; unverified,SLMail V2.5); Wed, 01 Nov 2000 17:50:56 -0600 Message-ID: <3A00BA50.E8C6AC4D@paralleldata.com> Date: Wed, 01 Nov 2000 18:50:24 -0600 From: "W Bauske" Organization: PDS Inc. X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.5-15 i686) X-Accept-Language: en MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: A few questions about compiling code and performance References: <3A00747D.4C5F5977@atipa.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0beta4 Precedence: bulk Reply-To: axp-list@redhat.com List-Id: Linux and Red Hat on Alpha processors arthur m coucouvitis wrote: > > hi, > > maybe i can help witrh the 3rd ? > > ...Any ideas about why this error occurs? > > > > f77 -O4 \ > > -o dimension dimension.f epsprg.o > > param.h: In program `dimension': > > In file included from dimension.f:39: > > param.h:26: > > parameter (nbound=max(nbins,ndatar)) > > ^ > > Invalid declaration of or reference to symbol `max' at (^) [initially seen > > at (^)] > > make: *** [dimension] Error 1 > max is a macro defined in a system include file. > the error can be fixed by adding 'include ' to > dimension.f, > where file-name is the name of the file containing the > definition of map(). > to find the file, you could try: > grep -w map /usr/include/*.h > grep -w map /usr/include/*/*.h, etc > If it were my code, I'd just do: integer nbound . . . nbound=max(nbins,ndatar) Not worth chasing this. It's trivial to change the code so the compiler won't complain about it. Wes