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]

[Fwd: EGCS 1.1.1]





I built and install the compiler on my RedHat 5.0 system Pentium 233)

the prefix was the default "/usr/local"

I also have gnat 311p install with GCC 2.8.1 install in /usr/bin

I created a link in /usr/bin as follows:

ln -s /usr/local/bin/gcc egcc

When I attempt a compile/link of a simple program, the compilation
succeeds, but on the link, I get the following errors:

[root@localhost /]# cd /proj/C++/Overloading
[root@localhost Overloading]# egcc main.cpp
/tmp/cczEPKrf.o: In function `main':
/tmp/cczEPKrf.o(.text+0x7): undefined reference to `endl(ostream &)'
/tmp/cczEPKrf.o(.text+0x15): undefined reference to `cout'
/tmp/cczEPKrf.o(.text+0x1a): undefined reference to
`ostream::operator<<(char const *)'
/tmp/cczEPKrf.o(.text+0x25): undefined reference to
`ostream::operator<<(int)'
/tmp/cczEPKrf.o(.text+0x30): undefined reference to
`ostream::operator<<(ostream &(*)(ostream &))'
collect2: ld returned 1 exit status


lld appears only in /usr/bin as:

-rwxr-xr-x   1 root     root       153292 Oct 22  1997 ld

Any suggestions would be appreciated.

Royce McMinn





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