Project

General

Profile

Bug #102

gmx_chi compilation error using gcc, line #1031

Added by Martin Lingenheil about 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Low
Assignee:
Erik Lindahl
Category:
analysis tools
Target version:
Affected version - extra info:
Affected version:
Difficulty:
uncategorized
Close

Description

Using the Release 3.3.1 sources gmx_chi.c cannot be compiled using gcc because
of a parse error occuring in line #1031. The reason can be found in the line
directly above: A double semicolon closing the declaration

static bool NormHisto=TRUE,bChiProduct=FALSE,bHChi=FALSE,bRAD=FALSE,bPBC=TRUE;;

Because of this, gcc assumes the declaration section to be finished and does not
expect further declarations of variables. It is confused by the rest of the
declarations.

Fix: Remove the second semicolon.

Misc: This bug is related to several compilation problems with SGI (Irix)
mentioned in the mailing list, which result from the same double semicolon.

gmx_chi.c_corr (40.2 KB) gmx_chi.c_corr gmx_chi.c with troublesome semicolon removed Martin Lingenheil, 08/24/2006 07:58 PM

History

#1 Updated by Martin Lingenheil about 13 years ago

Created an attachment (id=68)
gmx_chi.c with troublesome semicolon removed

#2 Updated by David van der Spoel about 13 years ago

Fixed in CVS.

Also available in: Atom PDF