You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by Jeremy Dean <de...@roguewave.com> on 2006/02/21 21:16:12 UTC
Problems with locale warnings
Hi,
When building our application I seem to be getting a number of warnings
concerned with locale:
xlC_r -I/opt/sourcepro/rw_buildspace_edition9
-I/opt/sourcepro/rw_buildspace_edition9/include
-I/opt/sourcepro/rw_buildspace_edition9/include/ansi
-I/opt/ctp_tools/project/Release_2.6.0/include -I/opt/probe/user/c/include
-I/usr/mqm/inc -I. -DUNIX -DANSI -DVERSION="\"\"" -D_RWCONFIG=12s -c
dbdocquote.C
"/opt/sourcepro/rw_buildspace_edition9/rw/tools/decport.h", line 172.5:
1540-1091 (W) The friend declaration "round" specifies a default argument
expression and is not a definition.
"dbdocquote.C", line 2729.19: 1540-0274 (S) The name lookup for "setfill"
did not find a declaration.
"/opt/sourcepro/rw_buildspace_edition9/include/iomanip", line 183.1:
1540-1298 (I) "template __rw_smanip<__rw_setfill<_CharT>,_CharT>
setfill(_CharT)" needs to be declared in the containing scope to be found by
name lookup.
"/opt/sourcepro/rw_buildspace_edition9/include/loc/_locale.h", line 344.12:
1540-2411 (W) A dynamic cast is present, but the correct RTTI option is not
specified.
"/opt/sourcepro/rw_buildspace_edition9/include/loc/_locale.h", line 336.1:
1540-0700 (I) The previous message was produced while processing
"__rw::__rw_get_facet<std::moneypunct<char,0> >(const locale &, const
moneypunct<char,0> *)".
"/opt/sourcepro/rw_buildspace_edition9/include/loc/_locale.h", line 81.9:
1540-0700 (I) The previous message was produced while processing
"std::use_facet<std::moneypunct<char,0> >(const locale &)".
"/opt/sourcepro/rw_buildspace_edition9/include/loc/_money_put.cc", line
288.31: 1540-0700 (I) The previous message was produced while processing
"std::money_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
>::do_put(iter_type, bool, ios_base &, char_type, long double) const".
"/opt/sourcepro/rw_buildspace_edition9/include/loc/_money_put.h", line 52.8:
1540-0700 (I) The previous message was produced while processing "struct
std::money_put<char,std::ostreambuf_iterator<char,std::char_traits<char> >
>".
"/opt/sourcepro/rw_buildspace_edition9/include/loc/_money_put.cc", line
322.1: 1540-0700 (I) The previous message was produced while processing
"template <class _CharT, class _OutputIter>
std::money_put::do_put(iter_type, bool, ios_base &, char_type, const
string_type &) const".
make: The error code from the last command is 1.
LANG on the box is set to en_GB, which is also the only locale that I built
with the libraries. Previously we always had LANG set to en_US.
Any idea what is causing these and what I need to do to get rid of them?
Regards
Jeremy Dean
Rogue Wave Software,
A QUOVADX(tm) division
Technical Support
Phone: 303-545-3205 -- 1-800-404-4767
E-mail: support@roguewave.com <ma...@roguewave.com>
Web: http://www.roguewave.com/support <http://www.roguewave.com/support>
Knowledge Base entries:
http://www.roguewave.com/kbdocs/search.html
<http://www.roguewave.com/kbdocs/search.html>
View issues online at:
http://www.roguewave.com/youraccount/login/
<http://www.roguewave.com/youraccount/login/>
Re: Problems with locale warnings
Posted by Martin Sebor <se...@roguewave.com>.
Jeremy Dean wrote:
> Hi,
>
> When building our application I seem to be getting a number of warnings
> concerned with locale:
>
> xlC_r
If this is 7.0 or better on AIX the command should be xlCcore_r. If
it's on Linux, it should be xlc. Otherwise the compiler/linker will
use the native C++ Standard Library in addition to ours.
> -I/opt/sourcepro/rw_buildspace_edition9
> -I/opt/sourcepro/rw_buildspace_edition9/include
> -I/opt/sourcepro/rw_buildspace_edition9/include/ansi
> -I/opt/ctp_tools/project/Release_2.6.0/include
> -I/opt/probe/user/c/include
> -I/usr/mqm/inc -I. -DUNIX -DANSI -DVERSION="\"\"" -D_RWCONFIG=12s
> -c
> dbdocquote.C
> "/opt/sourcepro/rw_buildspace_edition9/rw/tools/decport.h", line 172.5:
> 1540-1091 (W) The friend declaration "round" specifies a default
> argument
> expression and is not a definition.
This is not coming out of stdcxx headers.
> "dbdocquote.C", line 2729.19: 1540-0274 (S) The name lookup for
> "setfill"
> did not find a declaration.
This looks like an error, not just a warning. Is the reference to
setfill qualified with std::?
> "/opt/sourcepro/rw_buildspace_edition9/include/iomanip", line 183.1:
> 1540-1298 (I) "template __rw_smanip<__rw_setfill<_CharT>,_CharT>
> setfill(_CharT)" needs to be declared in the containing scope to be
> found by
> name lookup.
This is a followup on the error above.
> "/opt/sourcepro/rw_buildspace_edition9/include/loc/_locale.h", line
> 344.12:
> 1540-2411 (W) A dynamic cast is present, but the correct RTTI option is
> not
> specified.
Compile with -qrtti=<...> where <...> is either all or the rtti
argument appropriate for the application (see the compiler manual
for a list of available arguments).
Martin
> "/opt/sourcepro/rw_buildspace_edition9/include/loc/_locale.h", line
> 336.1:
> 1540-0700 (I) The previous message was produced while processing
> "__rw::__rw_get_facet<std::moneypunct<char,0> >(const locale &, const
> moneypunct<char,0> *)".
> "/opt/sourcepro/rw_buildspace_edition9/include/loc/_locale.h", line
> 81.9:
> 1540-0700 (I) The previous message was produced while processing
> "std::use_facet<std::moneypunct<char,0> >(const locale &)".
> "/opt/sourcepro/rw_buildspace_edition9/include/loc/_money_put.cc", line
> 288.31: 1540-0700 (I) The previous message was produced while processing
> "std::money_put<char,std::ostreambuf_iterator<char,std::char_traits<char
>
>>::do_put(iter_type, bool, ios_base &, char_type, long double) const".
>
> "/opt/sourcepro/rw_buildspace_edition9/include/loc/_money_put.h", line
> 52.8:
> 1540-0700 (I) The previous message was produced while processing "struct
> std::money_put<char,std::ostreambuf_iterator<char,std::char_traits<char>
>
>>".
>
> "/opt/sourcepro/rw_buildspace_edition9/include/loc/_money_put.cc", line
> 322.1: 1540-0700 (I) The previous message was produced while processing
> "template <class _CharT, class _OutputIter>
> std::money_put::do_put(iter_type, bool, ios_base &, char_type, const
> string_type &) const".
> make: The error code from the last command is 1.
>
> LANG on the box is set to en_GB, which is also the only locale that I
> built
> with the libraries. Previously we always had LANG set to en_US.
>
> Any idea what is causing these and what I need to do to get rid of them?
>
>
> Regards
>
> Jeremy Dean
> Rogue Wave Software,
> A QUOVADX(tm) division
> Technical Support
> Phone: 303-545-3205 -- 1-800-404-4767
> E-mail: support@roguewave.com <ma...@roguewave.com>
> Web: http://www.roguewave.com/support <http://www.roguewave.com/support>
>
> Knowledge Base entries:
> http://www.roguewave.com/kbdocs/search.html
> <http://www.roguewave.com/kbdocs/search.html>
> View issues online at:
> http://www.roguewave.com/youraccount/login/
> <http://www.roguewave.com/youraccount/login/>
>
>