Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

strings.h

Status
Not open for further replies.

Miros

Programmer
Jan 27, 2001
506
US
My company does cross platform development.

The Mac and Unix platforms use a header file called "strings.h" which I can't find anywhere on my hard drive. Allegedly, all compilers are supposed to have this header file.

I'm using VC++ 6.0, and have applied some of the service packs, but not all.

Do later versions of VC++ use this file? Exactly what do I have to buy/upgrade?

Rosalie Dieteman
 
the one that all are supposed to have is <string.h> not plural =)

Matt
 
also you can

#include<string>
using namespace std;
John Fill
1c.bmp


ivfmd@mail.md
 
I have used both string.h and strings.h
I have not been able to find a strings.h header file that works with Visual C++ 6.0
The dos compiler DJGPP has strings.h but it doesnt work with VC 6.0 and neither does the Unix version(GCC) of strings.h.
I am currently having this same problem. I cannot work in VC 6.0 anymore because I am using functions defined in strings.h and I get fatal errors if I try to include it because it doesn't exist.

For some references to some functions defined in strings.h goto
this the strncasecmp() function that I use.

If anyone can find a strings.h header file that works with VC 6.0 please email it to me at eric_216@yahoo.com
 
string.h is a C language header. It is not the analog of string or strings such as iostream is analog of iostream.h John Fill
1c.bmp


ivfmd@mail.md
 
Miros is right String.h and Strings.h are two different headers. I was looking for someway to use strings.h myself with VC++ when I found this I would appreciate anything someone could come up with too.
 
Also the file im trying to convert said something about some compilers not haveing the functions that come with strings.h and and to define a NO_functionname thing for the function. If someone could help me with that that would help as well. Ok ill stop posting so many things now.
 
Our final solution: We put the conditional compile into our dynamically allocated string class, so Windows compilers can use string.h and Mac/Unix compilers can use strings.h.

Thanks for all the info!

Rose/Miros
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top