Posted by shereef on March 24, 2001 at 21:02:06:
I am declaring an object of type ifstream as a private data member. This works for the class when I do not include any other files. But once I include other files and BUILD, I keep getting this 'ifstream : ambiguous symbol' error. I've tried overloading the << and >> operators for that particular class cuz I figure an ambiguity problem might have something to do with it. Kinda like, the compiler wants to do something the default way but it can't cuz it should be doing it the user-defined way, only there is no user-defined way, so the compiler bugs out. If any one has any suggestions I would greatly appreciate it.
Post a Followup