From: Joe (view other messages by this author)
Date: Thu, 25 Apr 2002 06:00:26
> In CW7, when you add a file to the project (Select Project, then Add
> Files..., then locate and highlight the file to be added and click the
> Add button) if your project has multiple targets you will be asked
> which targets you want to add the file to.
Yes, each time I tried deleting and re-adding all my src files (to try to
get them show up without n/a for the new target) I'd selected all targets.
They would always get added to all targets, but for some of them, the
code/data would have "n/a"
> In the Mac world, a "file" can have a data fork and a resource fork.
> The .rsrc files created by Constructor have no data, but they do
> contain resources. That's why you see two files and one has 0 bytes.
> You need to copy both files and the folder to copy a .rsrc file.
I still don't understand why there needs to be a file with 0 bytes. Do you
mean that I should create a new directory for my new rsrc file (like
Project/RESOURCE_NEWTARGET.FRK/myrsrc_newtarget.rsrc) or just create a copy
in the same directory (like Project/RESOURCE.FRK/myrsrc_newtarget.rsrc)
Also, which of the two rsrc files does CW expect me to add to the project--
the 0 byte or non-zero byte version? BTW, What does fork mean in this
context? :)
==
From: Ben Combee (view other messages by this author)
Date: Thu, 25 Apr 2002 08:51:29
> "n/a" will be shown for a couple of reasons. Resources files always
> show "n/a", since they don't contribute code or data to the project.
> Also, if your file mappings are set differently for the two targets, you
> might be able to add a file to one and not the other. If you're not
> doing anything special with file mappings, its a good idea to go into
> the preference and hit "Factory Settings", as that will reset the list
> to match your current set of plugins.
I had not messed with the file mappings afaik, but reset them to factory
anyway, for each of my targets. I'm still having trouble adding files to
the project. I tried deleting all src files and adding them back again to
all targets, and one target compiles fine, one gives a few strange
compilation errors and warnings of the form "Can't find function prototype"
for a small number of seemingly random functions, and one target can't even
compile because all the Code/Data is still listed as n/a.
BTW, is there a way to remove a file from one target without deleting it
from the entire project? I know that when you add a file to a project, you
can select the targets to associate it with, but I didn't see a way to
change the associations without deleting the file and re-adding it with
different associations.
I think that last time I ran into this kind of problem, I was using CW6,
trying to clone a target, and the way I worked around the n/a problem was to
revert to the backup I made of my project before I attempted to clone, and
then try to clone again using a slightly different recipe.
-Jason
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/support/forums/