[comp.sys.mac.programmer] Help with MPW application link

wes@arco.com (wesley Monroe) (03/15/91)

I am trying to port an application from THINK C to MPW.  I spent
the last day converting the include file names, ints to shorts,...
all the necessary things (I think).  My problem is when I try
to link the application.  I get a bunch of undefined externals, and
most/all of them are Trap calls i.e. NewHandle, DisposPtr,... a
whole slew of 'em.

Could some one mail me a copy of a application link command that
would show me where I have goofed.  I'm using MPW 3.1 on a Max IIcx,
and I'm linking with all the standard stuff that BuildMake spits
out.

Thanx,

Wes

wes@arco.com

rgm@OCF.Berkeley.EDU (Rob Menke) (03/16/91)

In article <1991Mar14.221328.28859@Arco.COM> wes@arco.com (wesley
Monroe) writes:

   My problem is when I try to link the application.  I get a bunch of
   undefined externals, and most/all of them are Trap calls i.e.
   NewHandle, DisposPtr,... a whole slew of 'em.

The problem probably doesn't lie with the linker, but the header files
which contain the trap addresses for toolbox/OS calls.  Did you
include the correct header files?
--
"When you're serious about having	|  Robert Menke
 fun, it's not much fun at all!"	|    rgm@OCF.berkeley.edu
		-- Calvin & Hobbes	|    ...!ucbvax!OCF!rgm