[comp.sys.mac.programmer] Think C 3.0 and the 68881

phil@mit-amt.MEDIA.MIT.EDU (Phil Sohn) (07/27/88)

I am having trouble getting 3.0 to compile files using the 68881
option.  What i have done is: 1) Set the 68881 compiler option, 2)
#define _MC68881_, 3) #include <math.h>, 4) link the xx881 files. Now
when I try to compile I drop into MacsBug with a 

Addr ERR00116E60    116E5C:	4EFB	000200C4	JMP *+0004(D0.w)

When I turn the 6881 compiler option off, everything seems to work ok.
If I recall correctly, others have used the 68881 option.  Does anyone
have any idea what I am doing wrong?


			phil@ems.media.mit.edu

singer@endor.harvard.edu (Rich Siegel) (07/27/88)

In article <2831@mit-amt.MEDIA.MIT.EDU> phil@mit-amt.MEDIA.MIT.EDU (Phil Sohn) writes:
>
>
>I am having trouble getting 3.0 to compile files using the 68881
>option.  What i have done is: 1) Set the 68881 compiler option, 2)
>#define _MC68881_, 3) #include <math.h>, 4) link the xx881 files. Now
>when I try to compile I drop into MacsBug with a 

	Is this when you compile, or when you run? I didn't have any problems
with the compiler. It sounds like you're doing everything else correctly;
in your project, any standard libraries (math, unix, or stdio)  should
have the "881" suffix, and _MC68881_ should be defined before you're
including <math.h>.

	If the compiler's crashing, send me the source file...

		--Rich



Rich Siegel
Quality Assurance Technician
THINK Technologies Division, Symantec Corp.
Internet: singer@endor.harvard.edu
UUCP: ..harvard!endor!singer
Phone: (617) 275-4800 x305