ok, ive had this problem for a few days now, and ive narrowed it down. But, i still cant figure out how to fix it, or what to even look for to fix it.
This is what ive come up with.
the problem(if you didnt read my last post) is that i get an error toward one particular function. Only when i link, not when i compile. the linking error is telling me that the function prototype exists in a .h file, but the compiler cant find the function anywhere. Thats ok, probably due to a DLL or .lib, right? Not a DLL, or i would have an error when starting the program, not linking. so im definitely missing a .lib.
The function prototype is:
Code:
void gltGetNormalVector(const GLTVector3 vP1, const GLTVector3 vP2, const GLTVector3 vP3, GLTVector3 vNormal);
its first three parameters are arrays of three float values(per parameter), which are vertices for a plane(obviously). This function returns an array of 3 floats that you will use in a call to glNormal. Basically, glNormal is used for the angle at which light reflects off the surface(i believeā¦ im still new to this). What ive found out about my problem is that i dont think i have the correct .lib file for the job, but that would mean i would need an updated one, because i have every one that i know opengl uses, and then some. ive never needed to include 7 libs in any program ive ever done before. But, my question is since i dont think i need any other libs, which lib should be updated? and for that matter, does it even need to be updated? or is this function even in existance? because i googled this function, and out of 8 trillion pages, this function didnt appear once. Peculiar.
thanks for any help.