(fix) Re: carbon project: strcmp, strlen, memcpy, etc. undeclared
(fix) Re: carbon project: strcmp, strlen, memcpy, etc. undeclared
- Subject: (fix) Re: carbon project: strcmp, strlen, memcpy, etc. undeclared
- From: Eric Hackborn <email@hidden>
- Date: Thu, 20 May 2004 10:04:46 -0700
I hit the following problem a few days ago and it left me stumped. I
finally
found the fix, and thought I'd post it as a warning for any other people
new to apple and xcode:
I discovered the problem was because I'd added all my headers, in
addition
to the source, to the project. By default xcode gives you a Source/
group
under the project group, but I'd added a Headers/ group with all my
header
files. This is apparently a very wrong thing to do, and generates
bizarre
errors with no indication of what the problem is. Adding a folder
reference
works fine, of course, and is better anyway since it saves you from
maintaining
the list in xcode. In fact, I wish there was such a thing as folder
references
for source code, so you don't have to maintain that list.
On May 16, 2004, at 9:29 PM, Eric Hackborn wrote:
Hi all,
My apologies because I'm sure this has been covered here before, but
I couldn't find anything in the archives.
I'm new to xcode and was several weeks into a project when I decided
to back it up. I discovered all the build/ info was included in my
main
source tree, so I deleted it figuring it would get rebuilt, but when I
went back to recompile the project, it failed with a 'strlen not
declared'
error. I spent some time playing with this, changing the build
locations
and some other things, but it always had this error. I tried bringing
back
an older version (I'd archived it before deleting the build files) but
this
had the error, as well. Finally, as a worst-case scenario, I created a
new empty carbon app project and added all my code back in -- the
code that was building just fine -- and now it fails with 28 errors,
all
apparently string.h functions that are not declared. Including
string.h
makes no difference.
I swear I remember reading something about this while browsing the
docs -- something about apple having the string functions in a
different
place -- but now I can't find anything, and anyway, even if there is
some
project-setting difference, I don't understand how it got changed and
somehow stayed changed even with a new project.
Anyone know about this problem?
thanks much,
eric hackborn
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.