c++ - DirectX xnacollision -


i've been playing xnacollision in vs 2010 directx , c++ , keep getting error.

error   1   error lnk2019: unresolved external symbol "int __cdecl xna::intersectspheresphere(struct xna::sphere const *,struct xna::sphere const *)" (?intersectspheresphere@xna@@yahpbusphere@1@0@z) referenced in function "public: virtual void __thiscall physicsapp::updatescene(float)" (?updatescene@physicsapp@@uaexm@z)   c:\users\andrew\desktop\physics 20 percent project\physicsdemo.obj  physicsdemo 

when i'm doing this

xna::sphere sphere1, sphere2; sphere1.radius = 1.0f; sphere1.center = xmfloat3(0.0f, 0.0f, 0.0f); sphere2.radius = 1.0f; sphere2.radius = xmfloat3(2.0f, 0.0f, 0.0f); int collision = xna::intersectspheresphere(&sphere1, &sphere2); 

i've included xnacollision.h.

#includeing header file is not thing need things these work. have link appropriate .lib file, linker complaining about. need check linker settings , ensure search paths correct , necessary external dependencies have been taken care of.


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -