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 / December 2003



Tip: Looking for answers? Try searching our database.

Why does Codewarrior want to compile for Mac OS 8?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
NV Developer - 08 Dec 2003 16:01 GMT
Hi,
I have Codewarrior v9 for the Mac and I created a shared lib project using
the carbon libraries and the compiler keeps thinking that I am working with
Mac OS 8. I tried using a prefix file for the project but it is still using
the header file from the Universal Headers to get its definitions. Any ideas
on what could be missing here? Thanks in advance!

Jaime Rios
Frederick Cheung - 08 Dec 2003 16:33 GMT
> Hi,
> I have Codewarrior v9 for the Mac and I created a shared lib project using
> the carbon libraries and the compiler keeps thinking that I am working with
> Mac OS 8. I tried using a prefix file for the project but it is still using
> the header file from the Universal Headers to get its definitions. Any ideas
> on what could be missing here? Thanks in advance!

if your project is CFM then the Universal headers are the right ones to
use. If not, then did you create your project as a Mach-O project?

Fred
NV Developer - 08 Dec 2003 16:35 GMT
I created an empty project and I set the PPC Target as "Shared Library".
This project is identical to another one I did and the older one doesn't
have any problems.

Jaime Rios

On 12/8/03 11:33 AM, in article
Pine.LNX.4.44.0312081632340.4429-100000@kern.srcf.societies.cam.ac.uk,

> if your project is CFM then the Universal headers are the right ones to
> use. If not, then did you create your project as a Mach-O project?
>
> Fred
Frederick Cheung - 08 Dec 2003 16:58 GMT
> I created an empty project and I set the PPC Target as "Shared Library".
> This project is identical to another one I did and the older one doesn't
> have any problems.

That sounds distinctly like a CFM project to me (for starters, i have PPC
Mac OS X Target). What linker are you using?

Fred

> Jaime Rios
>
[quoted text clipped - 5 lines]
> >
> > Fred
NV Developer - 08 Dec 2003 17:38 GMT
PPC linker.

Jaime
On 12/8/03 11:58 AM, in article
Pine.LNX.4.44.0312081656420.4429-100000@kern.srcf.societies.cam.ac.uk,

>> I created an empty project and I set the PPC Target as "Shared Library".
>> This project is identical to another one I did and the older one doesn't
[quoted text clipped - 14 lines]
>>>
>>> Fred
Frederick Cheung - 08 Dec 2003 18:14 GMT
> PPC linker.

Then your project is a CFM project.
You need Mac OS X PowerPC Mach-O

Fred
> Jaime
> On 12/8/03 11:58 AM, in article
[quoted text clipped - 18 lines]
> >>>
> >>> Fred
MW Ron - 08 Dec 2003 18:44 GMT
>Hi,
>I have Codewarrior v9 for the Mac and I created a shared lib project using
[quoted text clipped - 4 lines]
>
>Jaime Rios

As you have discovered you were doing CFM programming.

I know the names of the linkers and tools could be better named, but
I'll be darned if I can come up with better names.  The PEF/CFM carbon
tools have had that name for a long time and the Mach-O ones have Mac OS
X in the name.

The access paths will ultimately determine which headers are included,  
if you have Mac OS Support it will get the CFM Carbon headers if you
have Mac OS X support it will get the OS X ones.  

If I've just confused you please continue to ask questions.  It isn't
hard to understand but I can see it could be confusing.

Ron

Signature

                                New from Metrowerks
The CodeWarrior Wireless Development Kit for Symbian OS, SEMC P900 Edition
   Easy-to-use, integrated tools and hardware for SEMC P900 Development
http://www.metrowerks.com/MW/Develop/Wireless/Symbian/SymbianWDKC.htm

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

NV Developer - 08 Dec 2003 19:17 GMT
Hi,
On the Shared Library project that works, here are my access paths:
{Compiler}Mac OS Support
{Compiler}MSL/MSL_C
{Compiler}MSL/MSL_C++
{Compiler}MSL/MSL_Extras

And in the Shared Library project that DOESN'T work, here are the access
paths:
{Compiler}Mac OS Support
{Compiler}MSL/MSL_C
{Compiler}MSL/MSL_C++
{Compiler}MSL/MSL_Extras

What do I need to change?

Jaime
On 12/8/03 1:44 PM, in article
mwron-0C0D21.13445208122003@enews.newsguy.com, "MW Ron"
<mwron@metrowerks.com> wrote:

>> Hi,
>> I have Codewarrior v9 for the Mac and I created a shared lib project using
[quoted text clipped - 20 lines]
>
> Ron
MW Ron - 08 Dec 2003 20:24 GMT
>Hi,
>On the Shared Library project that works, here are my access paths:
>{Compiler}Mac OS Support
>{Compiler}MSL/MSL_C
>{Compiler}MSL/MSL_C++
>{Compiler}MSL/MSL_Extras

This is the correct path for CFM/PEF (classic Carbon) support.

>And in the Shared Library project that DOESN'T work, here are the access
>paths:
>{Compiler}Mac OS Support
>{Compiler}MSL/MSL_C
>{Compiler}MSL/MSL_C++
>{Compiler}MSL/MSL_Extras

if you want to do Mach-0  you need the Mac OS X Support folder you need
the /usr/lib  and /usr/include and the frameworks added, (Look at a
Mach-O Stationery).

By the way if you are doing Carbon and want it to run on OS 8/9 and OS X
be sure you have the right Carbon Resource and plist for it.

Ron

>What do I need to change?
>
[quoted text clipped - 27 lines]
>>
>> Ron

Signature

                                New from Metrowerks
The CodeWarrior Wireless Development Kit for Symbian OS, SEMC P900 Edition
   Easy-to-use, integrated tools and hardware for SEMC P900 Development
http://www.metrowerks.com/MW/Develop/Wireless/Symbian/SymbianWDKC.htm

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

NV Developer - 09 Dec 2003 19:20 GMT
Where is the plist located for the project?

On 12/8/03 3:24 PM, in article
mwron-0AAADF.15244208122003@enews.newsguy.com, "MW Ron"
<mwron@metrowerks.com> wrote:

>> Hi,
>> On the Shared Library project that works, here are my access paths:
[quoted text clipped - 53 lines]
>>>
>>> Ron
MW Ron - 10 Dec 2003 18:37 GMT
>Where is the plist located for the project?

You should have a .plc file for the project.

Ron

>On 12/8/03 3:24 PM, in article
>mwron-0AAADF.15244208122003@enews.newsguy.com, "MW Ron"
[quoted text clipped - 60 lines]
>>>>
>>>> Ron

Signature

                                New from Metrowerks
The CodeWarrior Wireless Development Kit for Symbian OS, SEMC P900 Edition
   Easy-to-use, integrated tools and hardware for SEMC P900 Development
http://www.metrowerks.com/MW/Develop/Wireless/Symbian/SymbianWDKC.htm

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

Sean McBride - 09 Dec 2003 23:37 GMT
> I have Codewarrior v9 for the Mac and I created a shared lib project using
> the carbon libraries and the compiler keeps thinking that I am working with
> Mac OS 8. I tried using a prefix file for the project but it is still using
> the header file from the Universal Headers to get its definitions. Any ideas
> on what could be missing here? Thanks in advance!

Create a new Mach-O based project.
 
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



©2009 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.