Original Post
Hi,
I''m trying to write a math library, but i can;t get inline functions to work.
If, in the header i have this:
inline int ToInt(float f);
then i get an unresolved external symbol in the app i test my lib with. It works if i take away the "inline" bit, but obviously it won;t be inlined.
I know this is because inlien functions only have internal linking, and so the function only exists in the .libs source.
Is there a way around this apart from defining the function itself in the header?
Its probably something really obvious that i''m missing.
Cheers, Steve
Steve
DirectX Programmer
Soon to be the new Bill Gates
DirectX Programmer
Soon to be the new Bill Gates