Article View: gnu.g++
Article #163Re: using C header files with C++
From: Doug Schmidt
Date: Thu, 05 Oct 1989 22:27
Date: Thu, 05 Oct 1989 22:27
20 lines
1616 bytes
1616 bytes
In article <RIEDL.89Oct5161459@medusa.cs.purdue.EDU>, riedl@cs (John T Riedl) writes:
>I have a library of C routines that I want to use from C++. Of
>course, the function declarations in the header file are in C form
>without any argument specifications (e.g., int f();). Is there a
>trick to get G++ to accept these declarations? If not, is there a
>solution that doesn't require me to make a separate header file for
>G++ (with the '...' argument notation)? How do other people solve
>this problem?
Try using the -fno-strict-prototype option. Perhaps a better
long-term solution is to get ahold of Ron Guilmette's `protoize'
program and ANSIify your header files... You can contact
Ron at rfg@ics.uci.edu.
Doug
--
schmidt@ics.uci.edu (ARPA) | Per me si va nella citta' dolente.
office: (714) 856-4043 | Per me si va nell'eterno dolore.
| Per me si va tra la perduta gente.
| Lasciate ogni speranza o voi ch'entrate.
Technical Details
Message-ID:
<1989Oct5.222720.7199@paris.ics.uci.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!swrinde!cs.utexas.edu!ginosko!usc!ucla-cs!uci-ics!newsReferences:
<RIEDL.89Oct5161459@medusa.cs.purdue.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!swrinde!cs.utexas.edu!ginosko!usc!ucla-cs!uci-ics!news From: schmidt@zola.ics.uci.edu (Doug Schmidt) Newsgroups: gnu.g++ Subject: Re: using C header files with C++ Message-ID: <1989Oct5.222720.7199@paris.ics.uci.edu> Date: 5 Oct 89 22:27:20 GMT References: <RIEDL.89Oct5161459@medusa.cs.purdue.EDU> Sender: news@paris.ics.uci.edu (Network News) Reply-To: schmidt@zola.ics.uci.edu (Doug Schmidt) Distribution: gnu Organization: University of California, Irvine - Dept of ICS Lines: 20 In-reply-to: riedl@cs.purdue.EDU (John T Riedl)