Subj : Re: Problems with 'undeclared' variables during compilation To : comp.programming.threads From : loic-dev Date : Tue Apr 12 2005 03:26 am Hello, > I am attempting to get a multi-threaded C++ program off the ground in a > Sun Solarix environment. > > In this particular situation, I am required to use namespaces. The problem is > that I get this error when I attempt to compile using: > 'g++ -lpthreads -o As you said, you are required to use namespace, so why not tell the compiler that you are working with the std namespace? Right after the #include directives, insert the following lines: using namespace std; Regards, Loic. .