This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Strange error message and other questions


Hey all,

Let me start by saying that I am new to Unix/Linux C++ programming, coming
over from the Windows world.  I finally got my boss to let me have a Linux
machine at work, and so if you could help me out I would greatly appreciate
it.

First of all, I downloaded the release 1.0 of egcs and built and installed
it successfully (make bootstrap, make install).  However, when I type the
command:

g++

(with no parameters)

I get the following messages:
/usr/lib/crt1.o  in function '_start'
/usr/lib/crt1.o (.text+0x57): undefined reference to 'main'

However, when I invoke g++ on a source file, it compiles just fine.  What
gives?

My second question concerns the libraries used by egcs.  Are they
automatically set up in the proper directories when I do a "make install"?
I already had gnu g++ on my machine... is egcs still using the old
libraries, or does it install and reference its own?.  And if egcs does use
its own versions, are pointers to these set up automatically so that the old
ones are not referenced by accident?

Finally, a question about the STL implementation.  How well is STL supported
by egcs.  For example, I was under the impression that the iostream classes
should be in a file <iostream> (with no trailing ".h").  But this file does
not exist.  And I don't see any file that supports wstring (should be in
<wstring>).

Actually, one more question.  How do I declare STL classes in egcs?  I know
that namespaces are not yet supported, but can I declare a string using
std::string?

Thanks for the help, and good job with egcs.

Peter



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]