-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Friday, Oct 4, 2002, at 13:31 US/Eastern, Andrew Lefebvre wrote:

> For some reason, when I try to compile code that contains strings, the 
> compiler gives me an error stating that the use of 'string' function 
> is not valid and "use this function instead".

        What is the exact error that you are getting? Without knowing that, I 
can only give general suggestions:
Make sure that you are including <string>, not <string.h>, "string" or 
"string.h".
Make sure that you either prefix every occurrence of "string" in your 
source with "std::", or put "using std::string;" or "using namespace 
std;" somewhere before you use string in your source.

>   Im not quite sure why it does this, because when i compile the code 
> on a unix box w/gcc, there are no errors.  is the header <string>, 
> which is part of the STL, not included with OSX Dev tools, or am i 
> doing something wrong?   thanks for the help.

- -- 
http://homepage.mac.com/clarkcox3/
[EMAIL PROTECTED]
Clark S. Cox, III
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (Darwin)

iEYEARECAAYFAj2d1v8ACgkQd6STocYT1xWkFgCfeO6DFbDpJPBf9eTNoKZpI/3Y
YfYAniJbYBgCEgmrWoCZobMzjEuoAAZh
=jeD6
-----END PGP SIGNATURE-----

Reply via email to