Article View: gnu.g++
Article #162using C header files with C++
From: John T Riedl
Date: Thu, 05 Oct 1989 21:14
Date: Thu, 05 Oct 1989 21:14
10 lines
842 bytes
842 bytes
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? Thanks, John
Technical Details
Message-ID:
<RIEDL.89Oct5161459@medusa.cs.purdue.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!purdue!riedlShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!ucsd!tut.cis.ohio-state.edu!purdue!riedl From: riedl@cs.purdue.EDU (John T Riedl) Newsgroups: gnu.g++ Subject: using C header files with C++ Message-ID: <RIEDL.89Oct5161459@medusa.cs.purdue.EDU> Date: 5 Oct 89 21:14:59 GMT Sender: riedl@cs.purdue.EDU Distribution: gnu Organization: Department of Computer Science, Purdue University Lines: 10