problem with using sin,cos,log etc in c program in ubuntu7.04
Asked by
dearprasanta
Having installed ubuntu7.04 from live cd i exucuted a c program. It could not compile c program telling that
stdio.h such directory not found.Then i installed libc6-dev.Then executed the same program which has only printf and scanf commands. and it executed.then after when i compiled a program with pow(x,2) it also excuted.but when i executed a program with sin ,cos, log functions it could not compile.but i had added math.h header file.it is telling that undefined reference to `sin'
collect2: ld returned 1 exit status
can u give me the solution for this?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- dearprasanta
- Solved:
- Last query:
- Last reply:
To post a message you must log in.