about gcc errors
sir i write a program in c for which it prints required date and month of year which is given by the user so i divide my program into two parts one is calculating(name is cal.c) and another one is for printing the month (name is trash.c) in this program i did not use main() and i include this(trash.c) in cal.c but when i am compiling trash.c it gave me error which is given below what is the error and how could it remove
"ramu@ramki:~$ gcc trash.c
/usr/lib/
(.text+0x18): undefined reference to `main'
collect2: ld returned 1 exit status"
please tell me
Question information
- Language:
- English Edit question
- Status:
- Answered
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask prasad.ram for more information if necessary.