stdc++ (cout) problem with RTEMS on Sparc emulator

Chris Johns chrisj at rtems.org
Fri Oct 22 00:39:28 UTC 2004


Courtney B. Duncan wrote:
> 
> The questions are:  Am I on the right track in tracking down this 
> problem?  Does C++ cout work for anybody under RTEMS?  Isn't there a 
> printf() based cout implementation that ought to work in this situation?

I use C++, libstdc++.a, the STL on a Coldfire processor with no problems.

Is the correct library being linked ?

If your target (sparc) tools are being built as multilib then check if 
the library for your specific variant is being built. If it does not get 
built, the compiler will link the default library and not warn you. This 
can result is strange problems due to different instructions.

If the correct library is being linked, the other area of potential 
trouble is the atomic lock type operations. You will find this code in a 
file called 'atomicity.h' under the:

  $prefix/lib/gcc/<target stuff>/include/c++/<target>/bits

directory.

-- 
  Chris Johns



More information about the users mailing list