Posted by Daniel Longest on March 25, 2001 at 00:01:44:
In Reply to: ambiguous symbol? posted by shereef on March 24, 2001 at 21:02:06:
The ambiguous symbol means that it is confused about which ifstream you are talking about. Make sure you didn't mix the old and new headers together, tha tmight cause the problem (no .h versus a .h). You can also look up what the error means in the MSDN files if you installed them, they usually are at least decent with error messages.
: 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