Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compilation problem with GCC PowerPC

Status
Not open for further replies.

ranjank

IS-IT--Management
May 9, 2003
176
0
0
IN
Hi,

I don't know is the right forum to put this question.If this is not the right forum please let me know where i can put it.Coming to question.I'm facing a very strange error while compiling the code in GCC PowerPC compile in RedHat linux 8.0.I'm getting the following error:

gcc/v1/bin/../x86/bin/../lib/gcc-lib/ppc-elf32-linux-gnu/3.3.
1/crt1.o(.rodata+0x4): undefined reference to `main
'
GNU ld version 2.14 20030612
collect2: ld returned 1 exit status
make[1]: *** [all] Error 1
make[1]: Leaving directory
make: *** [default] Error 2

Can anyone give some pointers.

Regards,
RK.
 
Your program needs a starting point. Does your program have something like
Code:
int main ()
{
...
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top