Topic
  • 2 replies
  • Latest Post - ‏2009-03-11T13:10:04Z by SystemAdmin
SystemAdmin
SystemAdmin
706 Posts

Pinned topic xlC ansi support

‏2009-03-10T15:12:56Z |
Hi,
I have been using xlC to compile a cpp program with following command
xlC_r -c -+ -qlanglvl=ansi a.cpp for xlC version 6, i want to know the significance of
the flag -qlanglvl=ansi and does any higher xlC version support this flag by defalut?

Dhiraj Kurhade
Updated on 2009-03-11T13:10:04Z at 2009-03-11T13:10:04Z by SystemAdmin
  • SystemAdmin
    SystemAdmin
    706 Posts

    Re: xlC ansi support

    ‏2009-03-10T23:23:09Z  
    Since you're posting to a Linux on Power forum, I'll assume you're running Linux.

    xlC Version 6 is a bit old - to put it mildly. Not sure which Linux distro you're running... the newer versions will all need newer levels of the xlC compilers.

    So I went to the Linux IBM compiler web site.

    http://www.ibm.com/software/awdtools/xlcpp/linux/

    Then went to the Library web site from there

    http://www.ibm.com/software/awdtools/xlcpp/linux/library/

    and looked in the pdf files...

    "ansi" is not listed in the Compiler Reference for either Version 6 or even the latest Version 10.

    You might check the pdf files and read about the langlvl to see if that's what you really want.
  • SystemAdmin
    SystemAdmin
    706 Posts

    Re: xlC ansi support

    ‏2009-03-11T13:10:04Z  
    by the way.. you might try posting your question over on the compilers discussion forums - they probably will be able to explain things much better over there..

    http://www-949.ibm.com/software/rational/cafe/community/ccpp?view=discussions