-LANG:libc_in_namespace_std=ON problems - SGI

This is a discussion on -LANG:libc_in_namespace_std=ON problems - SGI ; In 7.4.1, -LANG:libc_in_namespace_std=ON is the default. That's ok. However, it doesn't seem that all of /usr/include is prepared for this: $ uname -R 6.5 6.5.19m $ CC -v MIPSpro Compilers: Version 7.41 $ cat a.cc #include $ CC -c a.cc ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: -LANG:libc_in_namespace_std=ON problems

  1. -LANG:libc_in_namespace_std=ON problems

    In 7.4.1, -LANG:libc_in_namespace_std=ON is the default. That's ok.
    However, it doesn't seem that all of /usr/include is prepared for this:
    $ uname -R
    6.5 6.5.19m
    $ CC -v
    MIPSpro Compilers: Version 7.41
    $ cat a.cc
    #include
    $ CC -c a.cc
    cc-1132 CC: ERROR File = /usr/include/sys/types.h, Line = 532
    The namespace "std" has no member "time_t".

    __SGI_LIBC_USING_FROM_STD(time_t)
    ^

    cc-1132 CC: ERROR File = /usr/include/sys/types.h, Line = 533
    The namespace "std" has no member "clock_t".

    __SGI_LIBC_USING_FROM_STD(clock_t)
    ^
    ..

    Should /usr/include/sys/time.h include ?

    --
    albert chin

  2. Re: -LANG:libc_in_namespace_std=ON problems

    Albert Chin-A-Young wrote:
    > In 7.4.1, -LANG:libc_in_namespace_std=ON is the default. That's ok.
    > However, it doesn't seem that all of /usr/include is prepared for this:
    > $ uname -R
    > 6.5 6.5.19m
    > $ CC -v
    > MIPSpro Compilers: Version 7.41
    > $ cat a.cc
    > #include
    > $ CC -c a.cc
    > cc-1132 CC: ERROR File = /usr/include/sys/types.h, Line = 532
    > The namespace "std" has no member "time_t".
    >
    > __SGI_LIBC_USING_FROM_STD(time_t)
    > ^
    >
    > cc-1132 CC: ERROR File = /usr/include/sys/types.h, Line = 533
    > The namespace "std" has no member "clock_t".
    >
    > __SGI_LIBC_USING_FROM_STD(clock_t)
    > ^
    > ..
    >
    > Should /usr/include/sys/time.h include ?



    An easy fix would be adding

    #include

    just prior to

    #include

    Erik

+ Reply to Thread