Posted: Tue Oct 29, 2002 11:34 pm
Joined: 15 Oct 2002
Posts: 25
To the people cleaning the code: there are MANY header files with "using namespace std" inside.
This makes impossible (for me) to compile, on win32, the module that uses openAL as an identifier "vector" makes MSVC compiler thinks it's std::vector.
Putting a "using namespace..." in an .h file pretty much makes useless the concept of namespaces.
It gives problems as the one above.
Cleaning out this from headers files is critical in my opinion.
Posted: Wed Oct 30, 2002 4:58 pm
Joined: 16 Oct 2002
Posts: 116
Hmm, no effense meant but, whats good for MSVC isn't always good for the GCC compiler.
I've found Microsofts' compiler has its own set of sytax requirements as opposed to ANSI C/C++
Posted: Wed Oct 30, 2002 6:02 pm
Joined: 14 Oct 2002
Posts: 53
I agree with you dreamerv3, but also i agree it's not good to use "using namespace XXX" in a header.
Posted: Wed Oct 30, 2002 7:31 pm
Joined: 15 Oct 2002
Posts: 25
I really would like to get rid of M$ stuff too, using mingw or BCC on win, gcc on linux (already possible) - but for sure a using namespace in an .h file is to avoid, as already said...
Somebody suggested to use CMake, any reports about it's usefulness?
Unfortunately I really don't have time to play with it now...
Posted: Wed Oct 30, 2002 7:32 pm
Joined: 15 Oct 2002
Posts: 25
I really would like to get rid of M$ stuff too, using mingw or BCC on win, gcc on linux (already possible) - but for sure a using namespace in an .h file is to avoid, as already said...
Somebody suggested to use CMake, any reports about it's usefulness?
Unfortunately I really don't have time to play with it now...