Thread: installing libraries under MacOS, CodeWarrior 4.1

  1. #1
    Registered User
    Join Date
    Aug 2001
    Posts
    244

    installing libraries under MacOS, CodeWarrior 4.1

    Hey all, I'm using Mac OS 9.1 and MetroWorks CodeWarrior 4.1 in my school programming class. I'm trying to get the SDL library to work so I can write some graphical apps, but I've had some problems.

    I've never installed a library in MacOS (I use linux and windows at home), so I've been sort of guessing as I go along.

    First I extracted the latest development version of SDL 1.2.5 and moved the file "SDL" in lib to the System Folder. Then I created a new project and added the path to the SDL include and lib folders to my Access Paths (I tried both User and System Access Paths - whats the difference?).

    At this point, it almost works - when I attempt to compile a simple program I get:

    Link Error : undefined 'main' (code)
    Referenced from '__start' in MSL RuntimePPC.Lib
    Sooo I tried adding SDLmain.PPC.LIB to the project (in the SDL lib folder) and get this error message:

    Link Error : undefined 'SDL_main' (code)
    Referenced from 'main' in SDL_main.c

    Link Error : undefined 'SDL_putenv' (code)
    Referenced from 'main' in SDL_main.c

    Link Error : undefined 'SDL_InitQuickDraw' (code)
    Referenced from 'main' in SDL_main.c
    But now I'm out of ideas, and I'm not finding any solutions on Google (or at least nothing that works).

    Thanks for any help.

  2. #2
    Registered User
    Join Date
    Aug 2001
    Posts
    244
    Soo noone has any experience with MacOS and CodeWarrior?

    Anyone know a forum specifically for mac and c++ programming?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GCC: Compiling with both static and shared libraries
    By eatwithaspork in forum C Programming
    Replies: 4
    Last Post: 06-23-2008, 01:48 PM
  2. Replies: 7
    Last Post: 05-13-2008, 03:47 AM
  3. MinGW thread-safe runtime libraries
    By Mario F. in forum C++ Programming
    Replies: 3
    Last Post: 08-21-2006, 08:15 AM
  4. Libraries and headers
    By darksaidin in forum C++ Programming
    Replies: 10
    Last Post: 07-23-2003, 06:24 AM
  5. QT and external libraries
    By Quacker in forum Linux Programming
    Replies: 1
    Last Post: 04-08-2003, 07:02 AM