Hi,
I developed code in UNIX which works fine, however when I try to use the code in MS visual C++, I get lots of errors. Some of these I have resolved, however the following error continues to confuse me. I have the following libraries.
#include<iostream>
#include<string.h>
#include"string.h"
#include<fstream.h>
#include<stdlib.h>
using namespace std;
However if I try to use cout I get an error saying "error C2872: 'cout' : ambiguous symbol". I get a similar error whenever I use ifstream or ofstream. Why does this happen?
Thanks,
Jubbles Renoir
I developed code in UNIX which works fine, however when I try to use the code in MS visual C++, I get lots of errors. Some of these I have resolved, however the following error continues to confuse me. I have the following libraries.
#include<iostream>
#include<string.h>
#include"string.h"
#include<fstream.h>
#include<stdlib.h>
using namespace std;
However if I try to use cout I get an error saying "error C2872: 'cout' : ambiguous symbol". I get a similar error whenever I use ifstream or ofstream. Why does this happen?
Thanks,
Jubbles Renoir