home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!fauern!Germany.EU.net!urmel.informatik.rwth-aachen.de!solaris.rz.tu-clausthal.de!news!voeckler
- From: voeckler@ipc1.rrzn.uni-hannover.de (Jens-S. Voeckler)
- Subject: [Q][GCC][G++] Using streams
- Message-ID: <1992Dec28.130803.25813@newsserver.rrzn.uni-hannover.de>
- Sender: news@newsserver.rrzn.uni-hannover.de (News Service)
- Organization: RVS, Universitaet Hannover, Germany
- X-Newsreader: Tin 1.1 PL4
- Date: Mon, 28 Dec 1992 13:08:03 GMT
- Lines: 46
-
- I have encountered a problem when trying to compile a c++ program with
- g++. I am using SLS 0.98.5 distribution with the 0.99.0 kernel. Take a
- simple program like "asdf.cc":
-
- # include <stream.h>
-
- int main(void)
- {
- cout << "Hello world!\n";
- return 0;
- }
-
- At first, I tried to compile using "g++ -o asdf asdf.cc":
-
- Undefined symbol _cout referenced from text segment
- Undefined symbol operator...
-
- Then I tried "g++ -o asdf asdf.cc -static". That does compile the
- program, but yields an executable with the ridiculous size of 75k!
-
- A local guru suggested linking just the libg++ statically instead of
- using the "-lxxx" directive. That does not seem to work, either.
-
- Another guru suggested getting the lig++ source and recompiling
- everything (I'm not a guru, how am I supposed to do that?). That
- does leave me with executables which may not run on other systems.
-
-
-
- QUESTIONS
-
- Is there any other option besides "-static"? What do I have to do to
- get it translated? Do I miss sym-links? libraries? compiler
- directives? Does translating libg++ help? Did anyone do so? Where
- would I get it? Will Peter include something in the like of streams
- into the next SLS distribution?
-
- Thanx, Jens
-
- --
- Ciao InterNet : voeckler@rvs.uni-hannover.dbp.de
- Jens-S. V"ockler e-mail : voeckler@ipc1.rrzn.uni-hannover.de
- all opinions expressed are my *ultra*-own and have nothing to do with
- the rvs, rrzn, or other stuff'n'staff connected to these institutions.
-
- HELLO! I'm a .signature virus! Join in and copy me into yours! #@2!*
-