public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] g++ and stdlibc++ problems linking when using strstream
@ 2000-12-04 16:47 AshCan
  0 siblings, 0 replies; 2+ messages in thread
From: AshCan @ 2000-12-04 16:47 UTC (permalink / raw)
  To: ecos-discuss

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'



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ECOS] g++ and stdlibc++ problems linking when using strstream
@ 2000-12-04 18:11 Rosimildo daSilva
  0 siblings, 0 replies; 2+ messages in thread
From: Rosimildo daSilva @ 2000-12-04 18:11 UTC (permalink / raw)
  To: ecos-discuss

>From: AshCan@aol.com
>To: <ecos-discuss@sources.redhat.com>
>Subject: [ECOS] g++ and stdlibc++ problems linking when using strstream
>Date: Mon, 04 Dec 2000 19:47:17 EST
>
>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

In a short answer, you can NOT do that.

Ecos does not support:

   + C++ exceptions
   + rtti
   + IO Stream
   + STL

Ecos only has the bare minimal C++ support( classes & templates ).

Rosimildo.



_____________________________________________________________________________________
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-12-04 18:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-04 16:47 [ECOS] g++ and stdlibc++ problems linking when using strstream AshCan
2000-12-04 18:11 Rosimildo daSilva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).