[TriLUG] compat-egcs on Red Hat 7.1

Tom Bryan tbryan at python.net
Wed Oct 3 07:12:53 EDT 2001


> Then, to switch over to using the compat-* stuff, I ran
> $ . /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
>
> followed by
>
> $ g++ -o modules/test/hello_world modules/test/hello_world.cxx
> /tmp/ccyBRP4n.o: In function `main':
> /tmp/ccyBRP4n.o(.text+0x9): undefined reference to `printf(char const
> *,...)' collect2: ld returned 1 exit status

I just figured it out.  That should be 

$ egcs++ -o modules/test/hello_world modules/test/hello_world.cxx

---Tom



More information about the TriLUG mailing list