![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Fatal Error | sarwan | High Level Programming | 1 | 05-10-2006 07:21 AM |
| Glance Fatal Error | newbie07 | Shell Programming and Scripting | 4 | 05-09-2006 10:15 PM |
| Purify-SGI Fatal Error | avadhani | UNIX for Advanced & Expert Users | 2 | 11-28-2005 01:27 AM |
| ld: fatal error | ppass | High Level Programming | 1 | 01-07-2005 09:32 AM |
| Fatal error in disk | jav_v | UNIX for Advanced & Expert Users | 1 | 08-19-2002 09:51 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
i am trying to compile my program using a makefile and i keep getting this message:
Undefined first referenced symbol in file main /usr/local/lib/gcc-lib/sparc-sun-solaris2.9/3.3/crt1.o ld: fatal: Symbol referencing errors. No output written to prog5 collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target 'prog5' this is driving me crazy!!!! |
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
Can you post your code? Do you have a 'main' function in your program?
|
|
#3
|
|||
|
|||
|
All executable C programs must have this function:
Code:
int main(int argc, char *argv[])
{
printf("Program begins here\n");
return(0);
}
|
|||
| Google The UNIX and Linux Forums |