Thread: MSVC std error

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    9

    Question 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.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    9

    Whoops...

    I forgot to add that it's in the MP4 files link.

  3. #3
    S­énior Member
    Join Date
    Jan 2002
    Posts
    982
    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.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    11
    Try not adding the .cpp files to your project?

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    9
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Testing some code, lots of errors...
    By Sparrowhawk in forum C Programming
    Replies: 48
    Last Post: 12-15-2008, 04:09 AM
  2. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  3. Please Help - Problem with Compilers
    By toonlover in forum C++ Programming
    Replies: 5
    Last Post: 07-23-2005, 10:03 AM
  4. Stupid compiler errors
    By ChrisEacrett in forum C++ Programming
    Replies: 9
    Last Post: 11-30-2003, 05:44 PM
  5. UNICODE and GET_STATE
    By Registered in forum C++ Programming
    Replies: 1
    Last Post: 07-15-2002, 03:23 PM