'void camera_param::set_cam_vars(cv::SimpleBlobDetector::Params)': overloaded member function not found in 'camera_param' ArduCam_test c:\users\clang\desktop\working folder\opencv\xxxxxxx\camera_param.cpp 16
Error C2653 'cv': is not a class or namespace name xxxxxx c:\users\clang\desktop\working folder\opencv\arducam_test\camera_param.h 11
If I condense this into just a function its no problem, but path of least resistance is not desired in thisw example...need class. What's wrong with my code?
When the compiler gets to your camera_param header, no code has declared what cv is so the compiler has no idea what cv is. That namespace doesn't exist as far as the compiler is concerned. You need cv to exist BEFORE the compiler gets to cv in your header file.
Taking your suggestion I took"camera_param.h" and move it under all of the system <>/opencv "" includes. Then it had all of the missing info to properly process the object being passed.
Note that it's considered bad practice to have a header file that doesn't stand alone (i.e. if I want something from it, I should only have to #include that header); a header file that relies on other header files having already been #include d to work should #include the necessary header files itself.