Newsgroups: comp.speech
Path: lyra.csx.cam.ac.uk!warwick!pipex!howland.reston.ans.net!cs.utexas.edu!csc.ti.com!tilde.csc.ti.com!cauldron!ra.csc.ti.com!usenet
From: a904209@pluto.tiuk.ti.com
Subject: Re: rsynth
Message-ID: <CoHwsp.1Bv@csc.ti.com>
Sender: usenet@csc.ti.com
Nntp-Posting-Host: pluto.tiuk.ti.com
Organization: Texas Instruments Ltd.
References:  <CoGtqv.Hs0@egr.uri.edu>
Date: Tue, 19 Apr 1994 07:29:13 GMT
Lines: 67

     Stephen Raymond wrote in article <CoGtqv.Hs0@egr.uri.edu> :
>
>Please Help,
>
>I recently got the rsynth source code from
>svr-ftp.eng.cam.ac.uk . However, as a C novice
>I was unable to correctly compile and link the code.
>I am working on a Sun Sparc Station. To compile and
>link I simply executed the following line
>
>cc say.c ASCII.c darray.c etc.c etc. -o say
>
>I then try to execute say and get the following error:
>
>ld.so: Undefined symbol: _ASCII
>
>What have I done wrong.
>
I tried to E-mail a reply but it bounced (maybe our mailer) so I will
post it:

Hi, a hint from the author - just use "make" - as I say in the INSTALL
file Sun SPARC and sun cc is one of my supported configurations.

i.e.

prompt% cd .../rsynth
prompt% make

"make" is a standard Sun program and reads the "makefile" and "Makefile"
files to determine how to build the program.

Here is transcript when I run it:

pluto 8% /bin/make
make: Warning: Both `makefile' and `Makefile' exists
cc -O2  -I/usr/demo/SOUND -target sun4 -c  say.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  saynum.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  darray.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  ASCII.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  text.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  english.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  trie.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  phtoelm.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  holmes.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  elements.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  nsynth.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  def_pars.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  hplay.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  dict.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  getarg.c
cc -o say -L/usr/demo/SOUND -O2 say.o saynum.o darray.o ASCII.o text.o english.o trie.o phtoelm.o  holmes.o elements.o nsynth.o def_pars.o hplay.o dict.o getarg.o -laudio -lm
cc -O2  -I/usr/demo/SOUND -target sun4 -c  klatt.c
cc -O2  -I/usr/demo/SOUND -target sun4 -c  parwave.c
cc -o klatt -L/usr/demo/SOUND -O2 klatt.o parwave.o -laudio -lm
pluto 9%

I don't know what you are doing wrong in your "by hand" scheme but _ASCII is
the symbol defined for the array ASCII[] which is in ASCII.c.

rsynth does a lot of calculation so the -O2 is quite important.

Regards

  Nick Ing-Simmons  nik@tiuk.ti.com


