AMBER Archive (2006)

Subject: RE: AMBER: Installation amber 9 on IBM SP4

From: Ross Walker (ross_at_rosswalker.co.uk)
Date: Fri Aug 25 2006 - 11:16:13 CDT


> Final comma is illegal in C89, legal in C99. Since there are
> still compilers
> that default to C89 behavior (I think they are all IBM-based,
> but am not
> sure), a bugfix is probably appropriate. But we should also
> probably find
> the flags that get one C99 behavior, and add them to configure.

This should be the -qlanglvl option:

E.g.

xlc -qlanglvl=stdc99

and for C++ probably:

xlC -qlanglvl=c99__func__

>From the man page:
  stdc89
    Compilation conforms to the ANSI C89 standard,
    also known as ISO C90.
  stdc99
    Compilation conforms to the ISO C99 standard.

This is for v7.0. I don't know how older versions of xlc would handle this
and or whether IBM being IBM would change things in later compiler versions.

All the best
Ross

/\
\/
|\oss Walker

| HPC Consultant and Staff Scientist |
| San Diego Supercomputer Center |
| Tel: +1 858 822 0854 | EMail:- ross_at_rosswalker.co.uk |
| http://www.rosswalker.co.uk | PGP Key available on request |

Note: Electronic Mail is not secure, has no guarantee of delivery, may not
be read every day, and should not be used for urgent or sensitive issues.

-----------------------------------------------------------------------
The AMBER Mail Reflector
To post, send mail to amber_at_scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo_at_scripps.edu