<html><div style='background-color:'><DIV>any idea how to get rid of the linker errors </DIV>
<DIV>- undefined reference to `cosf'</DIV>
<DIV>and</DIV>
<DIV>- undefined reference to `sinf'</DIV>
<DIV> </DIV>
<DIV>as in</DIV>
<DIV> FLOAT theta = (2*D3DX_PI*i)/(50-1);<BR> pVertices[2*i+0].position = D3DXVECTOR3( sinf(theta),-1.0f, cosf(theta) );<BR> pVertices[2*i+0].normal = D3DXVECTOR3( sinf(theta), 0.0f, cosf(theta) );<BR> pVertices[2*i+1].position = D3DXVECTOR3( sinf(theta), 1.0f, cosf(theta) );<BR> pVertices[2*i+1].normal = D3DXVECTOR3( sinf(theta), 0.0f, cosf(theta) );<BR> </DIV>
<DIV> </DIV>
<DIV>anyone had this problem? It's from the directx8 direct3D sdk tutorial #4<BR><BR><BR></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html>
|