Hi everone I am new to C++ programming in Unix and have been getting some strange errors. I can compile this code fine in visual C++ on my windows machine, but when I try to compile on a unix machine I get these errors.
Undifined symbol
first reference in file
folowed by a bunch of
"std::basic_ifstream"
"std::.....
"std:... etc
any ideas?Code:#include <iostream> #include <fstream> #include <cstdlib> #include <cctype> using namespace std; int main () { int wordcount = 0; int letters = 0; double average = 0; char ch; ifstream infile; infile.open("a:wordy.txt"); if (infile.fail( )) { cout << "Input file opening failed.\n"; system("pause"); exit(1); } }



LinkBack URL
About LinkBacks


