This is the mail archive of the egcs@egcs.cygnus.com mailing list for the EGCS project. See the EGCS home page for more information.


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

Q: -fhonor-std / how to include "gas"


Hi,

I have two questions concerning the latest egcs version, which I got
via CVS yesterday.

 1. How do I enable support for namespace std in C++? I know about the
    compile time switch -fhonor-std, but apparently this option
    doesn't do anything under NetBSD/i386 Unix. I compiled the
    following program

     | #include <iostream>
     | #include <string>
     | 
     | int main()
     | {
     |     string s("Hello world.");
     |     cout << s << endl;
     |     return 0;
     | }

    as follows:

     | simons@peti:/tmp$ g++ -Wall -ansi -fhonor-std test.cpp -o test 
     | simons@peti:/tmp$ ./test 
     | Hello world.

    I already suspected that I need to compile the libstd++ library
    with the -fhonor-std option first of all, in order to place the
    external components into the correct namespace, but all attempts
    of doing so failed.


 2. On a Solaris 2.6 machine I tried to compile the ObjectSpace C++
    libraries. Everything worked fine except for an error when
    compiling a source code module with g++ using the native 'as'. So
    I installed gas and moved it over the original 'as' binary and it
    worked. But I am not particularly happy having to install gas in
    /usr/ccs/bin.

    I tried to re-compile egcs to use gas directly (from
    /usr/local/bin) but utterly failed to do so. I do have
    /usr/local/bin in my path and "which as" finds the correct
    assembler, but for some reason, egcs insists on calling
    /usr/ccs/bin/as.

    Is there any way to change that? I looked through the files in
    config/*, but couldn't find any reliable hint.

I appreciate any suggestions.

	-peter