Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: String.h not allowed?



On Mon, Sep 01, 2003 at 02:26:04PM -0400, Dalia Chako wrote:
> Try this:
>
> 1) Start a new C++ tool project
>
> 2) Add a header file called String.h to the project
>
> 3) #include <string> in String.h
>
> 4) #include "String.h" in main.cpp
>
> 5) try to compile
>
> When I do this, the compiler barfs, with all sorts of messages about
> undeclared
> symbols such as strcpy, memset, etc.
>
> Next, add a header file called MyString.h, #include <string> in
> MyString.h, and #include
> MyString.h in main.cpp; delete String.h from the project.
>
> Now it will compile just fine.
>
> So, my question is, what is up with the header file named String.h?
> Why can't I include such a
> file in my project?

It may have something to do with the way the OS preserves case, but
doesn't respect it. I would expect it to go looking for a second
string.h in the standard include directories after including <string>,
but it may think that it's already included.

--
GPG public key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x9D5B8762
_______________________________________________
projectbuilder-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/projectbuilder-users
Do not post admin requests to the list. They will be ignored.

References: 
 >String.h not allowed? (From: Dalia Chako <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.