ms visual c++ 5.0 with intro to c++ includes : LUSENET : Steve Heller's books : One Thread

I know we all hate syntax and would rather be 100% semantics (and beyond), but...

I tried using a few different include files from Steve's Introduction to C++, but it would seem that visual c++ 5.0 doesn't like the idea. Even with the search paths set to the directories with the files, it can't find them and gives, for example, this message in the error window:

Vect1.obj : error LNK2001: unresolved external symbol "int __cdecl VectorAssertFail(char *,unsigned int,unsigned int)" (?VectorAssertFail@@YAHPADII@Z)

I got curious and booted to linux and used GNU's compiler and ended up getting a link error there, too, but what it was I don't remember. I usually don't have troubles with includes, so I'm kind of stumped.

If anyone has any suggestions, I'd appreciate it.



-- Tom (, June 13, 1999


RE: ms visual c++ 5.0 with intro to c++ includes


This has worked for me and a few others I helped:

1. Under Tools>Options>Directories>Show Directories for:>Include files, add the directory that contains Steve Heller's includes (e.g., c:\djgpp\whos\code or similar)

2. Under Tools>Options>Directories>Show Directories for:>Library files, add the directory that contains Steve Heller's stharch.a library (e.g., c:\djgpp\lib or similar)

3. Place your project files into the Visual C++ project directory (e.g., C:\Program Files\DevStudio\MyProjects\WAoCpp\basic02). You do not need to move the header and library files -- we took care of them in steps one and two.

4. Insert the project's .cc files into the project using Project>Add to Project>Files...

I think this is where you had your problems last time -- you may have forgotten to insert into the project. This file is the implementation of the string6.h file, so it will certainly need to be compiled with the project.

5. You can leave the header and library files in their respective directories, a you told Visual C++ where to find them in steps one and two above.

This method works and is easier to use than my last Email's method. Good luck.

Best Regards,


-- Mac (, June 16, 1999.

Moderation questions? read the FAQ