Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!utrcu1!mi.eltn.utwente.nl!klamer From: klamer@mi.eltn.utwente.nl (Klamer Schutte) Newsgroups: comp.sys.atari.st.tech Subject: Re: fcvt/getch/getchar in GCC Keywords: GCC, GNU Message-ID: Date: 26 Mar 91 14:38:52 GMT References: <1991Mar25.210909.21762@zip.eecs.umich.edu> Sender: news@utrcu1.UUCP Distribution: all Organization: University of Twente, BSC-El Lines: 33 In <1991Mar25.210909.21762@zip.eecs.umich.edu> heavy@zip.eecs.umich.edu (Richard Scott Hall) writes: >I was able to get GCC to work on my system (strangely it would >not work in MT C-Shell, but it works fine from the desktop). Out of memory? GCC likes some! >But anyway, what I was wondering, I was compiling some files >that used fcvt (floating point to string), getch (wait for >a character), and getchar (get a char), but when went to link >the files these functions were undefined. I am pretty sure that >GCC on the SUNS has fcvt and getchar (I am not sure about getch), >but does the ST version too? If so, how do I link them in? fcvt is an internal routine of the SUN. Use sprintf instead to be portable. getch is a part of curses -- get a curses library. Or use Bconin. (i believe). getchar should be in the standard library, Perhaps it is only a macro -- did you include ? >Another thing... >When I am linking, does GCC look through all the files in my >lib path or does it only look in a default file? For instance, >if I want to compile a GEM program will I have to specify >'-lgemlib' ? You will have to specify. Klamer -- Klamer Schutte Faculty of electrical engineering -- University of Twente, The Netherlands klamer@mi.eltn.utwente.nl {backbone}!mcsun!mi.eltn.utwente.nl!klamer