Article View: gnu.gcc.help
Article #52939Need help in C++ include files
From: Kevin Lin
Date: Wed, 22 Apr 1992 20:48
Date: Wed, 22 Apr 1992 20:48
18 lines
1212 bytes
1212 bytes
I am using gcc 2.1 c++ options. My machine is SUN Sparc2 running OS4.1.1. The problems is that the function declarations in the include files are oversimplified, so the C++ complier will show errors. For example, the declaration of fopen() is "extern FILE *fopen();" in stdio.h. The C++ compiler will think fopen() does not require any parameter and report errors on "fopen(filename,...)" in my program. Is there any way to get around the problem described above? Thank you Kevin Lin Research Engineer Center for Robotics & Manufacturing Systems University of Kentucky Lexington, KY 40503 Tel: 606-257-6262 X. 511, E-mail: kevinl@ms.uky.edu
Technical Details
Message-ID:
<9204222048.aa23909@s.s.ms.uky.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ms.UKy.EDU!kevinlShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b23b94553f2a8808,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1992-04-22 13:48:36 PST Newsgroups: gnu.gcc.help Path: arc1-ca.pugleaf.net!sparky!uunet!usc!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ms.UKy.EDU!kevinl From: kevinl@ms.UKy.EDU (Kevin Lin) Subject: Need help in C++ include files Message-ID: <9204222048.aa23909@s.s.ms.uky.edu> Sender: daemon@cis.ohio-state.edu Organization: GNUs Not Usenet Distribution: gnu Date: Wed, 22 Apr 1992 20:48:36 GMT Lines: 18