can't compile basic hello world on RHEL
- From: "mhearne808[insert-at-sign-here]gmail[insert-dot-here]com" <mhearne808@xxxxxxxxx>
- Date: 13 Apr 2007 13:54:14 -0700
I must be missing something major, because I can't get the following
simple program to compile:
#include <stdio.h>
int main(){
fprintf(stderr,"Hello world\n");
}
The error I get from doing "gcc -o testme testme.c" is:
/tmp/ccMJ0qjZ.o(.text+0x28): In function `main':
: undefined reference to `__getreent'
collect2: ld returned 1 exit status
I already did "up2date gcc" and "up2date compat-gcc-32-c++", but I
still get the same error. If I try to compile this on a Mac OS X
system, or on another linux system we have, everything is fine.
Does anyone have a clue as to what's going on?
Thanks,
Mike
.
- Follow-Ups:
- Re: can't compile basic hello world on RHEL
- From: zoot
- Re: can't compile basic hello world on RHEL
- From: Tommy Reynolds
- Re: can't compile basic hello world on RHEL
- From: Jan Gerrit Kootstra
- Re: can't compile basic hello world on RHEL
- From: Tommy Reynolds
- Re: can't compile basic hello world on RHEL
- Prev by Date: Re: xinetd high cpu usage
- Next by Date: Re: can't compile basic hello world on RHEL
- Previous by thread: Get Free Linux T - Shirts
- Next by thread: Re: can't compile basic hello world on RHEL
- Index(es):
Relevant Pages
|