[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GCC



I have had one heck of a time tonight trying to get my c++ program to
compile. I was almost positive I had all the libraries properly install
but for some reason my program just would not complile. I wrote a very
simple main.C file as follows:

#include <iostream>

int main() {
        cout << "test" << endl;
        return 0;
}

This would not compile. And it baffled me for a while. After thinking
about it and trying about a million things I added the line:
        
using namespace std;

But I thought that the std was the default library if not specified. Can
anyone help me out here to set set the default library back to std how
it should be. Thanks.
-- 
++++++++++++++++++++++++++++++++++
Eric I. Maino
Computer Science Information Systems
Michigan Technological University
1010 Jasper Ave.
Houghton, MI  49931
Phone:(906) 483-4914
Fax:(561) 828-3232
http://www.emaino.net