back to C++ - namespace Question -
HI
I wrote alot of c++ in Codelite in 2016-2017, Have not written any c++ than a page since. written plenty of C.
But back to it in spades....
I humberly ask for a little namespace advice, as it seems some thing have changed since I last wrote any c++ -- this is not codelite specific (although it is what I use)
Previous I used GCC V4.7.2. I used Cstd11 ( -c++11) and codelite 9.0
I rebuilt a machine a year ago and now I have GCC10.2.1, codelite 15.0
The compiler complains that my class names etc can't be found, and maybe did I mean std: Cmyclass ?
and of course if I preface the reference to Cmyclass with std:: it find it.
It is like I have prefaced some of the code with using namespace std and it applies to everything..
I dont have using namespace std in my code.... (that I can find).
The compiler is now complaining <stddef.h> can't be found for pthreads.h
Did something change with C++ and treatment of namespaces / default namespaces ?
do I need to apply namespaces for all my source files ?
comments and advice happily accepted !
with thanks,
Glen.