This is the mail archive of the libstdc++@sourceware.cygnus.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: libstdc++-2.90.4 and egcs-19990314 on i586-pc-linux-gnu


Hello Martin, and thanks for your answer!

>>>>> "ML" == Martin v Loewis <martin@mira.isdn.cs.tu-berlin.de> writes:

ML> Correct me if I'm wrong: You've configured the library with -fnew-abi
ML> (ie. with implicit honor-std), and then compile the program with
ML> -fno-honor-std. 

Yes, I had. It was not clear to me what was required for compiling the
library itself.

ML> If that's the case, it isn't surprising that it won't find endl - The
ML> library only has std::endl. It is also not surprising that it is
ML> looking for endl instead of std::endl - you've been telling the
ML> compile to ignore std::.

Indeed.

ML> In short, use your flags consistently.

It would help if I understood their meaning better.
In fact, I'd be glad to understand what part of the compiler/library
code is actually affected/concerned in supporting them.

Also, I'd like to be able to understand the exact goal of the new-abi
project, in order either to contribute, or to make a proposal of mine.


Anyway, I reconfigured/rebuilt my library and tried to compile the
27hello example, and whether I call cout/endl or std::cout/std::endl,
I get indifferently:

% c++ -o 27hello -I~/H-libstdc++/include -L~/H-libstdc++/lib -fnew-abi -fno-honor-std 27hello.cc 
/tmp/ccySiaaa.o: In function `main':
/tmp/ccySiaaa.o(.text+0x1e): undefined reference to `ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status

My config:

% cd bld-libstdc++
% make clean
...
% CFLAGS="-g -O2 -fnew-abi -fno-honor-std" CXXFLAGS="-g -fvtable-thunks -D_GNU_SOURCE -fno-implicit-templates -fnew-abi -fno-honor-std" ../libstdc++-2.90.4/configure  --prefix=/home/marc/H-libstdc++
...
% make install
...
% 

So, I still do something wrong...
Best Regards!
Marc

-- 
Marc Girod                Hiomo 5/1          Voice:  +358-9-511 23746
Nokia Telecommunications  P.O. Box 320       Mobile: +358-40-569 7954
NWS/NMS/NMS for Data      00045 NOKIA Group  Fax:    +358-9-511 23580
                          Finland            marc.girod@ntc.nokia.com


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