Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!fub!kirste From: kirste@methan.chemie.fu-berlin.de (Burkhard Kirste) Newsgroups: comp.lang.c++ Subject: Re: TC++: "floating point formats not linked" Message-ID: Date: 13 Feb 91 09:56:24 GMT References: <1991Feb9.193059.14322@ucselx.sdsu.edu> Organization: Free University of Berlin, Organic Chemistry Lines: 18 >In TC++, running in "C" mode , the following code gives the error message: >"scanf: floating point formats not linked" >How do I link them? (fp is a pointer to an open text file) > > float *w > fscanf(fp,"%f\n",w); > >tom weston I have found that a statement such as atof(""); would help. Anyway, I think that this "feature" of TC is a nuisance. -- |~| Freie Universitaet Berlin, Institut fuer Organische Chemie / \ Burkhard Kirste kirste@kristall.chemie.fu-berlin.dbp.de /FUB\ Takustrasse 3, D-1000 Berlin 33 UUCP: kirste@fub.uucp `---' Telefon: (030)838-6484 Telefax: (030)838-5163