Got rid of all occurrences (or at least those grep was able to find) of "using namespace std", and replaced them with target specific directives, such as using std::vector; using std::string; using std::endl... A mystery remains with navcomputer.cpp, which works without using namespace std, even though it shouldn't. It's probably getting it from a header file; but I don't know which.