Question:
what do u mean by linker error in 'c'?
2006-12-30 09:00:15 UTC
ya while complilng in 'c' im getting linker error like undefined symbol '_main'in cos module.can any one answer me pls
Four answers:
Wonka
2006-12-30 09:06:42 UTC
The named module's compiled code is not available to be connected together with the rest using the linker.

So choose the linker's path resolution tree correctly. ie Point the linker to where the missing module's code resides.



The linker tries to connect all the references in code to real offsets in execution mode. But it can't. So help it.



It could also be a typo in some module calling a routine that doesn't want to and shouldn't exist.
2006-12-30 09:20:12 UTC
Write the following code at the very first line of your program, I think it will compile now smoothly.



#include;



Make sure your stdio.h file is properly installed in proper directory. If not then do it at first by making a proper link from tools menu of your C compiler(It may be in options or someting else, I'm forgetting now). I think you will be able to to do it now.
Sumanth
2006-12-30 09:19:09 UTC
It means that i cant find the requested module in the file.



Check all your function names,



Check all your include files



It generally happens if u have some silly errors/spelling miskates in the fuction name and call



http://howstuffworks.com
Taci
2006-12-30 09:02:26 UTC
It means the compiler cant find the requested function you are calling.

check if you have include all required files


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...