gcc can't compile, egcc can!??
Hi all,
I can't get gcc to compile anything but egcc can. Example:
/* hello world */
#include <stdio.h>
int main(void)
{
printf("Hello world!\n");
return 0;
}
/* end hello world */
tcsh% gcc -o hello hello.c
/usr/lib/crt1.o(.text+0xe): undefined reference to `__libc_init_first'
/usr/lib/crt1.o(.text+0x18): undefined reference to `_environ'
tcsh% egcc -o hello hello.c
tcsh% hello
Hello world!
Brian
--
Mechanical Engineering servis@purdue.edu
Purdue University http://www.ecn.purdue.edu/~servis
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: