This is the mail archive of the libstdc++@sources.redhat.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: compile fails on hypot


On Tuesday 31 October 2000 19:33, Lars Gullik Bjønnes wrote:
> Benjamin Kosnik <bkoz@redhat.com> writes:
> | I just checked in a fix for this. After that checking, I was able to
> | build both with and without shadow headers.
>
> Yes, I also managed the build now.... however
>
> #include <string>
> int main()
> {
>             std::string a("hello there");
> }
>
> Fails brutaly, se below.
>
> shared and shadow enabled, built in clean dir "make bootstrap".
> Deleted installed gcc and libs/include files before install.
>
>         Lgb
>
> /usr/local/include/g++-v3/bits/std_cstdio.h:136: `printf' is already
> declared in this scope

  This is the result of a gcc 'feature'.  Currently, if you are going to use 
the shadow headers, you need to compile with -fno-builtin.


> /usr/local/include/g++-v3/bits/c++io.h:40: syntax error before ';' token

  The remaining errors are a result of a bit of a problem in the 
installation; the shadow headers need the shadowing version of libio.h 
installed (the one that #include's bits/wrap_libio.h), but instead get the 
real (non-shadowed) libio.h, since they both live at the same level in the 
include heirachy.

  A temporary solution to this might be to move g++-v3/libio.h to a level 
down in the include search heirarchy (ie gcc-lib/$arch/2.97/include) and copy 
$src_dir/libstdc++-v3/include/c_std/libio.h to g++-v3.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]