Article View: gnu.gcc.help
Article #51012Where is __ansi_fflush coming from?
From: Joe Bonitch x71842
Date: Mon, 12 Jul 1993 13:37
Date: Mon, 12 Jul 1993 13:37
17 lines
1248 bytes
1248 bytes
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
Technical Details
Message-ID:
<1993Jul12.133752.28944@spectrum.xerox.com>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!udel!rochester!rocksanne!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,fca26b03a6e27a17,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-07-12 17:55:06 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!darwin.sura.net!udel!rochester!rocksanne!news From: bonitch@xerox.com (Joe Bonitch x71842) Subject: Where is __ansi_fflush coming from? Message-ID: <1993Jul12.133752.28944@spectrum.xerox.com> 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