Question:
While compling a program in C++ I got this error 'Linker Error: Undefined symbol _circle' Explanation please?
1970-01-01 00:00:00 UTC
While compling a program in C++ I got this error 'Linker Error: Undefined symbol _circle' Explanation please?
Ten answers:
Tizio 008
2008-12-02 03:37:48 UTC
it means what it says: the symbol _circle used in the file FILE.CPP is ... used, but not defined anywhere.



the linker is the program (often called automatically after the compiler) that must find the code/memory for the symbols used, when they are not in the same "file" (roughly saying)... it "links" (the verb link has a meaning, right?) e.g. symbols of standard libraries with the code of the libraries, so that you can obtain an executable (even when the lib is not "embedded" but dynamically linked, —rather common—, the linker must check if the symbol can be "resolved")
2016-10-14 06:41:12 UTC
are you able to run the domicile windows ninety 8 cd returned because it is going to load this record in case you insert the cd then boot up, run till it a lot all records then take it out and reboot, youthful Robert could be your uncle. it potential you have lost that record out of your device attempt to do a decrease back up once you could of win ninety 8 for any issues sooner or later.
Badsha
2008-12-02 19:52:52 UTC
see first you need to know what is a linker and what is a linker error. After code compilation, that code is linked with all the library functions existent in your turboC directory...Now, that is the job of the linker to find out the body of the functions u have used like printf, scanf etc...Now you have used one function called "symbol_circle" which you have declared and called from the main function but you havent declared the body of it...During linking time, the linker sees that the function is called but it has got no corresponding code to execute...write a body of that function.....then u will find no linker error will occur..
Siva
2008-12-02 18:50:58 UTC
Check whether you have entered the header file that consist of the circle() in ti. Eg. graphics.h in C and for pow() we use math.h



So just right click at the circle() in the TurboC editor and find the header file.



Enter the header file and try out.



If it still not works then check for the spellings and check for the inclusion of graphics in the code.
velocity009
2008-12-02 05:22:56 UTC
check the name (spell) of the variable where it was defined ... if the variable "_circle" is not defined in FILE.cpp, the re-declare the variable in this file using "extern" before using it .... still problem, then post ur code here .... good luck :)
snjy23
2008-12-02 03:51:45 UTC
the identifier circle is not defined in your library i.e. the library files where compiler searches for the code of included functions.

Include proper header files and use proper library.
2008-12-02 03:33:15 UTC
hi dear,

linker error generally occurs when you are not writing any method properly.eg-prit() or print f().like this

secondly undefined symbole generally occured when the variable used by u is not declared.
Arjun Ajit
2008-12-02 03:28:02 UTC
maybe u havent declared _circle in ur program or somtimes it might be because u would't have given the correct directry to ur C

++ language..
Shunmugha Sundaram
2008-12-02 03:26:16 UTC
Check ur declarations...give more details are you linking to any other file i mean dynamic linking..post u r code pl..
2008-12-02 07:12:13 UTC
you have not give the definition of the circle function

if you are using circle function of the graphics than you need to add

graphics.h header file



and if you create your own function than include a prototype defintion of the function before main like

int circle(int);


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