Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
General
GeneralPortable MacsHardwareNetworking
Applications
Mac ApplicationsEudoraFirefox / MozillaInternet ExplorerOutlook ExpressMS OfficeEntourageExcelPowerPointWordVirtual PCMedia PlayerOther MS Products
Programming
Mac ProgrammingCodeWarriorPerl
Country Specific
Australian Mac GroupUK Mac Group

Mac Forum / Programming / CodeWarrior / July 2004



Tip: Looking for answers? Try searching our database.

CW 8.3 Mach-O ppc/ansi.h problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ephi Sachs - 22 Jul 2004 09:32 GMT
I'm trying to convert a CFM app to Mach-O, and I keep having the
following problem:

In my precompiled header file, I include "DebugNew.h", which
eventually includes the file "size_t_mach.h", which tries to include
"ppc/ansi.h", and fails on:
"Error: the file ppc/ansi.h cannot be opened".

I followed all the instructions about setting up the access paths,
including adding "/usr/include" etc.
I also tried many different combinations of the order of the paths.

The weirdest thing is that sometimes it does manage to compile, but
most of the time it doesn't.

Please help,
Thank you.
MW Ron - 22 Jul 2004 17:20 GMT
>I'm trying to convert a CFM app to Mach-O, and I keep having the
>following problem:
[quoted text clipped - 10 lines]
>The weirdest thing is that sometimes it does manage to compile, but
>most of the time it doesn't.

Your best way to convert a project is to start out with a new stationary
and  drag and drop your files from the old to the new.  This assures
that you have the correct prefix files and paths set up.  That is what
I'd suggest you try.

There might be some problems with DebugNew , I don't recall any but I'm
on the road this week.

Ron

Signature

Metrowerks Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and Metrowerks' staff
       --   http://www.metrowerks.com/community  --

Ron Liechty - MWRon@metrowerks.com - http://www.metrowerks.com

Ephi Sachs - 23 Jul 2004 07:45 GMT
Actually this seems like some kind of bug. I found a way to "convince"
it to find the file:
Open the target settings, unmark the Framework-style-includes box,
press "Save" - so that CW will search for the files again, mark the
box again (not necessary, but that's the setting I wanted),
and then all of a sudden it compiles.
If you try to compile a second time, it won't work again, until you
follow the same procedure.
The same thing happened to me with including "Carbon/Carbon.h", it all
of a sudden couldn't find the file, until I followed the above
procedure.

> >I'm trying to convert a CFM app to Mach-O, and I keep having the
> >following problem:
[quoted text clipped - 20 lines]
>
> Ron
Miro Jurisic - 23 Jul 2004 08:04 GMT
> Actually this seems like some kind of bug. I found a way to "convince"
> it to find the file:
[quoted text clipped - 4 lines]
> If you try to compile a second time, it won't work again, until you
> follow the same procedure.

This happens to me about 3 times a day. Relaunching the IDE fixes it.

meeroh

Signature

If this message helped you, consider buying an item
from my wish list: <http://web.meeroh.org/wishlist>

Ephi Sachs - 23 Jul 2004 16:52 GMT
Sounds like a bug to me..
It also happens every 5 minutes. relaunching the IDE helped only for
one compilation.
This is annoying enough to give up trying to convert to Mach-O, and
stick to using CFM.

> > Actually this seems like some kind of bug. I found a way to "convince"
> > it to find the file:
[quoted text clipped - 8 lines]
>
> meeroh
Sean McBride - 22 Jul 2004 18:44 GMT
> I'm trying to convert a CFM app to Mach-O, and I keep having the
> following problem:
[quoted text clipped - 3 lines]
> "ppc/ansi.h", and fails on:
> "Error: the file ppc/ansi.h cannot be opened".

I seem to recall that DebugNew does not use framework-style includes and
therefore needed minor changes to work with Mach-O.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.