incubator-stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-195) IBM VAC++ 8.0 linux uses _IO_putc instead of putc
Date Mon, 05 Jun 2006 19:48:30 GMT
    [ http://issues.apache.org/jira/browse/STDCXX-195?page=comments#action_12414835 ] 

Martin Sebor commented on STDCXX-195:
-------------------------------------

This is also an issue when using gcc:

$ cat t.cpp && uname -srvp && gcc -dumpversion && make t
#include <cstdio>

int main()
{
    std::putc ('x', stdout);
} 
Linux 2.6.5-7.191-pseries64 #1 SMP Tue Jun 28 14:58:56 UTC 2005 ppc64
3.3.3
gcc -c -I/amd/devco/sebor/dev/stdlib/include/ansi -D_RWSTDDEBUG   -pthread -D_RWSTD_USE_CONFIG
-I/amd/devco/sebor/dev/stdlib/include -I/build/sebor/gcc-3.3.3-15S/include -I/amd/devco/sebor/dev/stdlib/examples/include
 -pedantic -nostdinc++ -g  -m64 -W -Wall -Wcast-qual -Winline -Wshadow -Wwrite-strings -Wno-long-long
-Wcast-align  t.cpp
t.cpp: In function `int main()':
t.cpp:5: error: `_IO_putc' undeclared in namespace `std'
make: *** [t.o] Error 1

> IBM VAC++ 8.0 linux uses _IO_putc instead of putc
> -------------------------------------------------
>
>          Key: STDCXX-195
>          URL: http://issues.apache.org/jira/browse/STDCXX-195
>      Project: C++ Standard Library
>         Type: Bug

>   Components: 27. Input/Output
>     Versions: 4.1.3
>  Environment: SuSE SLES 9sp2 (ppc64), IBM XL C/C++ Advanced Edition V8.0 for Linux  

> Version: 08.00.0000.0000
>     Reporter: Scott (Yu) Zhong

>
> IBM VAC++ 8.0 linux uses _IO_putc instead of putc
> file affected:
> include/ansi/cstdio
> ------- testcase.cpp --------
> #include <cstdio>
> int main()
> {
> 	std::putc ("test", stdout);
>         std::fflush (stdout);
> }
> ---------- compile line ----------------
> xlc -F /package/1/ppc64/compilers/ibm/va80/vac.cfg -q64 -qarch=ppc64 -D_RWSTD_NO_IMPLICIT_INCLUSION
-qnolib -Wl,-dynamic-linker -Wl,/lib64/ld64.so.1  -D_RWCONFIG=stdlib_rs -I../../include -I./../../../../include
-I./../../../../include/ansi -I./../../../.. -I.. -I. -g -c ../testcase.cpp
> ---------- output ----------------------
> "../testcase.cpp", line 5.9: 1540-0130 (S) "std::_IO_putc" is not declared.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message