[comp.sources.d] Recent SC v6 posting: wierd symbols not found

richmond@astroplasma.berkeley.edu (Michael Richmond) (04/06/89)

  I'm running AIX 2.2 (a SYSV lookalike) on an IBM RT.  When I try to
link my object files to make 'sc', I get the following error message:

	   cc -O -DSYSV2   sc.o interp.o cmds.o crypt.o xmalloc.o range.o 
                 help.o lex.o gram.o -lm -lcurses -lPW  -o sc
	ld: Undefined -
		__C_asin
		__C_atan
		__C_atan2
		__C_cos
		__C_exp
		__C_log
		__C_log10
		__C_sin
		__C_sqrt
		__C_tan
		_end

The symbols '__C_xxx' are really bothering me -- I can't figure out where
they come from, although I've narrowed their origin to somewhere in 'interp.o'.
Can anyone help me out?

          Thanks in advance,
              Michael


*** Error code 1

Stop.
--                                          Michael Richmond
"This is the heart that broke my finger."   richmond@astroplasma.berkeley.edu

drake@ibmarc.uucp (/99999999) (04/07/89)

Add the following 3 lines to the top of interp.c, ahead of the #include for
math.h:

#ifdef aiws
#undef _C_func
#endif

This circumvents the problem.

Sam Drake / IBM Almaden Research Center 
VNET:      DRAKE at ALMADEN       BITNET:  DRAKE at ALMVMA
Internet:  drake@ibm.com          UUCP:    uunet!ibmarc!drake
Phone:     (408) 927-1861         IBM Tieline: 457-1861