Are there any codes out there that helps me to estimate or calculate the center of a sphere from a set of data points on the surface of the sphere? for eg., least-squares fitting of a set of points to the equation of a sphere? THANKS!
User 2080501
Posts
-
code to estimate center of sphere? -
can't compile my codes...pls helpThank you so much for your help....your suggestion has solved my problem.... Does this mean I should convert the .c file into .cpp file in the future? Thanks for all your help guys!!
-
can't compile my codes...pls helpI have recently tried incorporating someone's codes into my codes in visual c++. However their codes are in C. Anyway I have just added their .C and .H files into my project workspace and called one of their functions in my main program. I am unable to cmpile due to the error below: regis.obj : error LNK2001: unresolved external symbol "struct Coordinates __cdecl findRotationMatrix(struct Coordinates)" (?findRotationMatrix@@YA?AUCoordinates@@U1@@Z) Debug/regis.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. I understand that the compiler is looking for a library file but the problem is the codes i downloaded only came with the .C and .H file. If i am not wrong, the original codes were compiled successfuly in gcc. Is this a compatability problem?