[ECOS] g++ and stdlibc++ problems linking when using strstream

AshCan@aol.com AshCan@aol.com
Mon Dec 4 16:47:00 GMT 2000


I am having problems linking in any libraries.  I have
rebuilt the arm-elf tool chain to get stdlibc++ 
libraries.

my code is as simple as:

#include <strstream>

// function

void func(args)
{ 

// ....

strstream strStream;
strStream << "hello world" << '\n' << '\0';

This compiles OK, but the linker reports the following
errors indicating a problem since ecos does not 
support unix standard facilities.

Here are my error messages.  I know this is not specifically
an ecos issue, but may help someone else in the future 
trying to use stdlibc++ in ecos.

thank you

/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(streambuf.o):/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/streambuf.cc:282: undefined reference to `__errno_location'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(filebuf.o):/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/filebuf.cc:118: undefined reference to `open'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(filedoalloc.o): In function `_IO_file_doallocate':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/filedoalloc.c:104: undefined reference to `isatty'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_fopen':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:186: undefined reference to `__errno_location'
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:194: undefined reference to `open'
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:200: undefined reference to `__errno_location'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_attach':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:220: undefined reference to `__errno_location'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_underflow':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:292: undefined reference to `__errno_location'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_overflow':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:342: undefined reference to `__errno_location'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_sync':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:408: undefined reference to `__errno_location'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_seek':
/usr/people/dan/prj/main/pim/plt/ecos/tools/gcc-2.95.2/libio/fileops.c:596: undefined reference to `lseek'
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/libstdc++.a(fileops.o): In function `_IO_file_stat':
/usr/armtools/lib/gcc-lib/arm-elf/2.95.2/../../../../arm-elf/sys-include/sys/stat.h:331: undefined reference to `__fxstat'





More information about the Ecos-discuss mailing list