• Advertisement
Sign in to follow this  

namespace question

This topic is 2827 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Say this is math.h
namespace bnr
{
	namespace math
	{
		inline float degToRad(float x) {	return x * 0.017453292f;	}
		...
	}
}
But here is another class header...
#include "math.h"
namespace bnr
{
	namespace math
	{
		class Matrix
		{
		public:
			void rotateX(Matrix* out, float a)
			{
				Matrix temp, m;
				float r = bnr::math::degToRad(a); //indentifier not found, what
				...
			}
		}
	}
}
Why am I getting identifier not found on that function? What am I missing here?

Share this post


Link to post
Share on other sites
Advertisement
figures I solve it right after I post.

It was the byproduct of include weirdness apparently.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement