Path: 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: 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) In article , 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.