> I did run the configure program and it seemed to go fine.
> When I adjust
> the gcc line to this:
>
> gcc -I../src -g -I../ -I/usr/local/include \
> -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/
> -D_OS_UNIX \
> -c protocol.c
>
> which includes the proper location of the iostream header,
> or this to get the other headered it complains about:
>
> gcc -I../src -g -I../ -I/usr/local/include \
> -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ \
> -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686
> -pc-linux-gnu/ \
> -D_OS_UNIX -c protocol.c 2>&1 | more
>
> I get different errors:
>
> naked src # gcc -I../src -g -I../ -I/usr/local/include \
> -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ \
> -I/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686
> -pc-linux-gnu/ \
> -D_OS_UNIX -c protocol.c 2>&1 | more
>
> In file included from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iosfwd:45,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ios:44,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ostream:45,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iostream:45,
> from select.h:29,
> from protocol.c:41:
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/s
> tringfwd.h:46: parse error before "std"
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/s
> tringfwd.h:47: syntax error before '{' token
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/s
> tringfwd.h:60: parse error before '<' token
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/s
> tringfwd.h:65: parse error before '<' token
> In file included from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/cstdio:50,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/i686-p
> c-linux-gnu/bits/c++io.h:35,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/bits/f
> pos.h:44,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iosfwd:46,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ios:44,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/ostream:45,
> from
> /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3/iostream:45,
> from select.h:29,
> from protocol.c:41:
>
>
> The strange part is I don't need to do all these includes when simply
> compiling a simple cout << "hello world" program, g++ foo.c
> -o foo works
> fine. All my emerges compile fine as well, so I'm thinking that these
> packages need something specific to get them to go on gentoo.
Why would you? cout is a internal c++ function and doesn't use headers. iostream
includes several other functions that this program must need.. I am starting to think
this was written for something other that linux, and has something unix or something
else specific in it..
> I guess no one has tried this before :)
I have not. Your getting parse errors.. Thats program specific... Have you googles
around on this??
Nice machine name btw.. (as I write down for future use)
--
[EMAIL PROTECTED] mailing list