-
MSVC std error
I'm trying to compile a program using MSVC for one of my classes and I'm getting 26 errors. I know that the files that we were given are correct (and those are the ones I'm having a problem with). I'm uncertain how to modify them so they will compile correctly with MSVC v6.0.
I don't want to take up a ton of space posting the files here--the text copies can be found <A HREF="http://www-courses.cs.uiuc.edu/~cs225/cs225/_nav/_framepage/assignPage.html">HERE</A>. I'm having problems with:
link225.h
vector225.h
The first thing you need to do with these two files is change the "#include <iostream.h>" to "#include <iostream> using namespace std". That's as far as I've gotten, and I can't seem to get any further.
Any help would be greatly appreciated.
-
Whoops...
I forgot to add that it's in the MP4 files link.
-
MSVC 6.0 has problems with template friend functions, you could either upgrade to MSVC.NET or use something like Dev C++ if you want to use the files and are on a budget. There may be some work arounds, you could try a search on google for MSVC, template and friend.
-
Try not adding the .cpp files to your project?
-
Thanks for the help guys. Unfortunately, I'm on no budget at all, so I can't upgrade my software. I've tried not using the .cpp files while compiling, but that makes the situation worse.