> I am stuck on linking, due to basic_streambuf, ios_base and
> _Filebuf_base. I am compiling in compat=4 mode, with the Forte update 1
> Is there an equivalent static lib I can use, to make my program link? I
> need defined function sof the three clases mentioned above, or rather,
> their elimination from my build.
The error message is absolutely correct.
-compat=4 is ARM standard C++, which all in all
has "only" a few thousand differences to ANSI/ISO C++
(-compat=5), and uses
a significantly different ABI. I strongly recommend that you
immediately discard the idea of using the libCstd (i.e. some
ANSI/ISO standard C++) together with code
compiled with -compat=4. See also Sun's C++
You will not be able to get this mix
to work except under extremely restricted circumstances
- pure C interface between ARM code and ANSI/ISO code,
- no C++ objects/types are allowed to be visible in the other part,
much less passed between the two parts.
- no cin, cout, cerr, and clog anywhere
- exceptions only either in the ARM or the ANSI/ISO part,
and then you need a specific order for the libC and the
libCrun at link time.
If you get your program to link the way you want, it won't run
correctly, as symbols will be resolved incorrectly,
and some required global structures will be missing.
You need to migrate your code to ANSI/ISO
C++ completely, especially recompile all
libraries with -compat=5, plus the necessary
code changes, or stick with the ARM standard.
Other combinations which will inevitably
fail for similar reasons: g++ and Sun's C++ compiler.
Libraries compiled with an old g++ like 2.72, and
a g++ which supports ANSI/ISO C++, like 2.95.2
C++ is not C, you cannot mix code created by
different C++ compilers, as their is no common
C++ ABI (yet).