RE: AMBER: Installation amber 9 on IBM SP4

From: Ross Walker <ross.rosswalker.co.uk>
Date: Fri, 25 Aug 2006 09:16:13 -0700

> 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.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.scripps.edu
To unsubscribe, send "unsubscribe amber" to majordomo.scripps.edu
Received on Sun Aug 27 2006 - 06:07:24 PDT
Custom Search