Thread: String Library
View Single Post
Old 03-15-2003, 02:53 PM   #15 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
You are using Visual C++ 6? If so, then it should work unless you have messed up your files. Like, moving them around and stuff. Or you messed up the dependencies.
Anyways, a last test (though conceptual totally irrelevant at this very moment!!):

Place : string test="abc";
before your cout statement, in your main() method.

Though it is clear (based upon the output error) that your compiler does not locate your string header file correctly.
This happens when you move the standard library OR mess them up OR declare vars and methods on the wrong spot. The latter case (declaring stuff on the wrong spot) is not the case clearly, since your code is correct.

UNINSTALL VC++ 6 completely and then RE-INSTALL.
Valmont is offline   Reply With Quote