This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: String.h vs string.h bug...
- To: "Ryan C. Gordon" <rgordon at vnet dot net>
- Subject: Re: String.h vs string.h bug...
- From: James Paul Morgan <jpmorgan at unm dot edu>
- Date: Fri, 25 Apr 1997 10:39:11 -0600 (MDT)
- cc: gnu-win32 at cygnus dot com
On Fri, 25 Apr 1997, Ryan C. Gordon wrote:
> Very simply, when compiling a C++ program that includes <string.h>,
> the preprocessor includes <String.h> from the C++ include directory,
> instead of the (lower case) string.h from the C include dir. This
> isn't a problem under Unix, I suppose, since "String.h" and
> "string.h" aren't the same file, but under Windows 95, it's causing
> problems. Besides annoying warnings of "implicit" declarations of
> strchr(), I get programs that won't compile due to this error:
>
The simple workaround is to copy the string.h file to cstring.h and
then include that instead. That's what I had to do with the V GUI package.
See ya around the Mulberry bush.
--James
:)
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".