ambiguous symbol
-
I'm doing the following #include then later fstream fin; and it gives me this error. C:\parsells\C++ Testing\ccode\odbc_stuff\odbc_stuff.cpp(137) : error C2872: 'fstream' : ambiguous symbol there is other code in there as well, but that is where it says the error is. :wtf: ICXC NIKA
-
I'm doing the following #include then later fstream fin; and it gives me this error. C:\parsells\C++ Testing\ccode\odbc_stuff\odbc_stuff.cpp(137) : error C2872: 'fstream' : ambiguous symbol there is other code in there as well, but that is where it says the error is. :wtf: ICXC NIKA
-
scope?? are you 'using namespace std?' std::fstream ed Regulation is the substitution of error for chance.
when I put in the std:: infront of the the fstream the error changes. I wrote this code and compiled it on it's own and it all worked, now when I'm trying to merge it into some code that I downloaded it doesn't work. :confused: here's what I'm doing. std::fstream fin; fin.open(filename,ios::in | ios::nocreate); the errors I get are: odbc_stuff.cpp(30) : error C2079: 'fin' uses undefined class 'basic_fstream >' odbc_stuff.cpp(31) : error C2228: left of '.open' must have class/struct/union type odbc_stuff.cpp(31) : error C2039: 'nocreate' : is not a member of 'basic_ios >' odbc_stuff.cpp(31) : error C2065: 'nocreate' : undeclared identifier I don't get it. I thought I was doing a standard file open. :mad: ICXC NIKA