The Mozilla
Organization
Our Mission
Who We Are
Getting Involved
Community
Editorials
What's New
Newsbot
Development
Roadmap
Module Owners
Blue Sky
Projects
Status
Tools
Products
Source Code
Binaries
Documentation
License Terms
Bug Reports
Quality
Search
Feedback


How to upgrade your Codewarrior tools

Last updated 99/03/11. Based on news postings to netscape.public.mozilla.mac by Simon Fraser.

Here are the download links. Click each of them:

IDE 3.3

Compilers 2.2.1 and MSL 4.1.05

MacOS Linker

Do these downloads, and then:

  1. After you install new tools, you should rebuild the MacHeaders precompiled header files, and MSL libraries.

  2. If you install the MSL update, you need to change the .exp file for the NSStdLib project. If you installed the latest publicly available MSL update from Metrowerks, replace the file "NSStdLib.exp" with "NSStdLib.exp (MSL 4.1.05)". Do this by renaming the files in the finder (NOT by adding or removing it from the project file).

  3. Be aware of a bug in the 2.2.1 compilers, that was introduced since the Pro 4 release (so that code the builds fine with 2.2.1 will break under 2.1, and will break when the bug is fixed in Pro 5). This bug concerns calling non-const methods on const objects:
   class nsFoo {
      public:
         void     ModifyFoo()  { mValue = true; }

      private:
         bool     mValue;
   };
  
   void FooBar(const nsFoo* myConstFoo)
   {
      myConstFoo->ModifyFoo();     // wrong, but not caught by the compiler.
   }

Note that these updates fix most of the problems with debugging shared libraries that plagued the Pro 4 release.

Follow these instructions, and then you are done. :-)

Back to the Macintosh build page.



Copyright © 1998 The Mozilla Organization.