|
-
April 1st, 2004, 03:38 PM
#1
namespace issues
I'm having a problem resolving some namespace isses.
in my project I have:
main.cpp: #include <iostream.h>
main.cpp: #include "timestamp.h"
timestamp.h: #include "timelist.h"
timestamp.h: #include <fstream.h>
timelist.h: #include <list>
the issue is I'm getting "ambiguous operators" in timestamp.h when I declare ofstreams and ifstreams. I tried changing list to list.h but I get several compile problems (likewise with changing iostream.h to iostream)
also adding "using namespace std;" or declaring them as std: fstream is not working.
Am I using the wrong namespace or is there a different method of fixing this?
I can't help but feel like I'm running some sort of "hack job" and that there's a better way to all of this.
thanks,
Devan
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|