dmc (digital mars compiler)
Does anybody use dmc for c++? I have been using it for several years, ever since I started programming with regular C and it has worked great. DMC claims to support c++ but I just started learning c++ today and trying some things out and I am running into some problems.
gives an error.
This works. It's kind of annoying, but I'm willing to live with that.
Error: undefined identifier 'std'
using namespace std;
using the -A (conformity to standard C/C++) switch fixes this for some reason, I don't know why.
Error: 'string' is not a member of namespace 'std'
If I am doing something wrong (I have installed stlport and I use the -cpp switch although it automatically compiles in cpp mode if the filename extension is .cpp or .c++), or if there is an easy way to fix this I would like to know. Otherwise can anybody recommend a good command line C++ compiler for windows?