[uClibc]beginner's stupid toolchain question

Bob Cheng hdrhg at hotmail.com
Wed Aug 7 06:59:05 UTC 2002


Hi:

  Sorry to bother you for my stupid question about this basic toolchain 
howto.
This is my test helloworld.cpp program:

#include <iostream.h>

main()
{
        cout << "Hello World C++\n";
}

I try to compile it to run on uClinux. What I got is a very big 
helloworldcpp.o file, and I can't convert it using elf2flt. What's wrong 
here?


[bob at voip test]$ /home/bob/gcc-3.1/toolchain/bin/arm-uclibc-g++ 
helloworldcpp.cp
p -o helloworldcpp.o
In file included from 
/home/bob/gcc-3.1/toolchain/include/g++-v3/backward/iostre
am.h:31,
                 from helloworldcpp.cpp:1:
/home/bob/gcc-3.1/toolchain/include/g++-v3/backward/backward_warning.h:32:2: 
war
ning: #warning This file includes at least one deprecated or antiquated 
header.
Please consider using one of the 32 headers found in section 17.4.1.2 of the 
C++
standard. Examples include substituting the <X> header for the <X.h> header 
for
C++ includes, or <sstream> instead of the deprecated header <strstream.h>. 
To d
isable this warning use -Wno-deprecated.
/home/bob/gcc-3.1/toolchain/lib/gcc-lib/arm-linux/3.1/../../../../arm-linux/lib/
libstdc++.a(locale.o):/home/bob/gcc-3.1/build/gcc-3.1/libstdc++-v3/src/locale.cc
:308: the 'setlocale' function supports only C|POSIX locales
[bob at voip test]$ ls -al helloworldcpp.*
-rw-rw-r--    1 bob      bob            64  8¤ë  7 11:52 helloworldcpp.cpp
-rwxrwxr-x    1 bob      bob       1887130  8¤ë  7 15:02 helloworldcpp.o
[bob at voip test]$ file helloworldcpp.o
helloworldcpp.o: ELF 32-bit LSB executable, ARM, version 1, statically 
linked, n
ot stripped
[bob at voip test]$ /home/bob/gcc-3.1/toolchain/bin/arm-uclibc-elf2flt 
helloworldcp
p.o
helloworldcpp.o: Input file contains no relocation info



_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




More information about the uClibc mailing list