[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[plamo:09791] Re: standard C++ library



From: Sumiya Sakoda <sakoda@toyoake.or.jp>
Subject: [plamo:09786] standard C++ library
Date: Mon, 14 May 2001 09:24:17 +0900
Message-ID: <wksni87p6s.wl@BASEM17.oroshi.toyoake.or.jp>

> 参考までにconfigureのログを載せておきます。
> # cat config.log
> (略)
> ++ cat dummy.C
> #include "new.h"
> struct foo {
>     int x;
>     foo();
>     ~foo();
> };
> foo::foo() {}
> foo::~foo() {}
> int main()
> {
>     foo* ptr = 0;
>     foo* a = new(ptr) foo;
>     a->x = 0;
>     delete a;
>     return 0;
> }
> ++ /usr/bin/g++ -o dummy dummy.C
> ++ make -f confMakefile t
> /usr/bin/g++        -D__ANSI_CPP__ -I. -I. -I././regex -I. -I././util -I/usr/local/include -g -O  t.c++
> In file included from /usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/iostream.h:31,
>                  from t.c++:1:
> /usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h: In method `struct streampos streambuf::pubseekoff(long long int, ios::seek_dir, int = 3)':
> /usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:362: conversion from `__off64_t' to non-scalar type `streampos' requested
> /usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h: In method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
> /usr/lib/gcc-lib/i386-pc-linux/2.95.2/../../../../include/g++-3/streambuf.h:364: `struct streampos' used where a `long long int' was expected
> make: *** [t] エラー 1
> 

これって g++ の stream 回りのバグじゃなかったかなぁ。昔、パッチをあて
て g++ を作り直したような記憶があるけど。。。

# 今だと Plamo-2.2 用のバイナリで更新してしまう方が手っ取り早いかも知
# れない

------
こじま

Follow-Ups
[plamo:09798] Re: standard C++ library, Sumiya Sakoda
References
[plamo:09786] standard C++ library, Sumiya Sakoda

[検索ページ] [メール一覧]
Plamo ML 公開システム