compliing c programs in ubuntu
Asked by
vicky.it.bhu
i wrote a small programme which is as follows:
int main()
{
printf("\nHELLO LINUX");
return(0);
}
i compiled it............
gcc hello.c
i get the following message.........
hello.c: In function ‘main’:
hello.c:4: warning: incompatible implicit declaration of built-in function ‘printf’
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
WHAT SHOULD I DO............?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jim Qode
- Solved:
- Last query:
- Last reply:
To post a message you must log in.