G
Graeme
I just recently obtained a copy of Visual C++ in order to make it
easier for a friend and I to colaborate on a game. Previously, I had
been using Dev-C++.
The problem I have is that the compiler fails to recognize the vector
class. I #include <vector>, but it still has problems recognizing the
type. I have heard that including *.h files can really screw up the
compiler in this way, and I am using <stdlib.h> and <stdio.h>. I also
found out that the vector class needs the 'using std::vector'
declaration (even though string seems to work fine), but when I add
this to the code, it has problems with the following function, calling
object an undeclared identifier:
template<class C>
void INV_ReleaseContainer(C& object)
{
C temp;
temp.swap(object);
}
My friend, an experienced user of Visual C++, has no idea what is
going on, and the code compiled just fine in Dev. I have the feeling
that several things are working against me at once, so I'm not really
sure what to try next. Any help would be greatly appreciated!
Thanks!
Graeme
easier for a friend and I to colaborate on a game. Previously, I had
been using Dev-C++.
The problem I have is that the compiler fails to recognize the vector
class. I #include <vector>, but it still has problems recognizing the
type. I have heard that including *.h files can really screw up the
compiler in this way, and I am using <stdlib.h> and <stdio.h>. I also
found out that the vector class needs the 'using std::vector'
declaration (even though string seems to work fine), but when I add
this to the code, it has problems with the following function, calling
object an undeclared identifier:
template<class C>
void INV_ReleaseContainer(C& object)
{
C temp;
temp.swap(object);
}
My friend, an experienced user of Visual C++, has no idea what is
going on, and the code compiled just fine in Dev. I have the feeling
that several things are working against me at once, so I'm not really
sure what to try next. Any help would be greatly appreciated!
Thanks!
Graeme