Article View: gnu.gcc.help
Article #51016Re: Where is __ansi_fflush coming from?
From: Bruce Milner
Date: Tue, 13 Jul 1993 06:18
Date: Tue, 13 Jul 1993 06:18
39 lines
2267 bytes
2267 bytes
In article <1993Jul12.133752.28944@spectrum.xerox.com> bonitch@xerox.com (Joe Bonitch x71842) writes: Newsgroups: gnu.gcc.help Path: fcom.cc.utah.edu!hellgate.utah.edu!dog.ee.lbl.gov!overload.lbl.gov!agate!howland.reston.ans.net!darwin.sura.net!udel!rochester!rocksanne!news From: bonitch@xerox.com (Joe Bonitch x71842) Sender: news@spectrum.xerox.com Reply-To: bonitch@xerox.com Organization: Xerox Corporation, Webster NY Date: Mon, 12 Jul 1993 13:37:52 GMT Lines: 19 I am using gcc 2.2.2 with the -ansi option. Compiling is working fine, (this is my first project using gcc). When ld is executed though, I am getting an "ld: Undefined symbol" error on the symbol "__ansi_fflush". I use fflush() calls in my code, and am assuming that the symbol __ansi_fflush is being generated because of those calls and the -ansi option to the compiler. My best guess is that I am neglecting to link in some ansi-specific library where the linker would find __ansi_fflush. Is this correct? Does anyone know what lib contains __ansi_fflush? Any help would be greatly appreciated. --- Joseph Bonitch bonitch@eso.mc.xerox.com The sun compiler (acc SC2.0.1) defines #define fflush __ansi_fflush. inside of stdio.h I think that you have some files compiled with the suns compilers (2.0 acc) and some others with gcc. This will probably cause problems. Bruce Milner bruce@st-pauli.med.utah.edu
Technical Details
Message-ID:
<BRUCE.93Jul13001857@st-pauli.med.utah.edu>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!caen!hellgate.utah.edu!fcom.cc.utah.edu!fcom.cc.utah.edu!bruceReferences:
<1993Jul12.133752.28944@spectrum.xerox.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,fca26b03a6e27a17 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-12 23:54:00 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!sdd.hp.com!caen!hellgate.utah.edu!fcom.cc.utah.edu!fcom.cc.utah.edu!bruce From: bruce@st-pauli.med.utah.edu (Bruce Milner) Subject: Re: Where is __ansi_fflush coming from? In-Reply-To: bonitch@xerox.com's message of Mon, 12 Jul 1993 13:37:52 GMT Message-ID: <BRUCE.93Jul13001857@st-pauli.med.utah.edu> Sender: news@fcom.cc.utah.edu Organization: Department of Human Genetics, University of Utah References: <1993Jul12.133752.28944@spectrum.xerox.com> Date: 13 Jul 1993 06:18:56 GMT Lines: 43