Xref: news2.mv.net comp.os.msdos.djgpp:5245 From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: MikAlleg Date: Fri, 21 Jun 1996 16:09:19 +0200 Organization: TU Chemnitz-Zwickau Lines: 27 Message-ID: <31CAAD0F.407E@Mathematik.tu-chemnitz.de> References: <835267578snz AT flag DOT demon DOT co DOT uk> <31c9bc69 DOT 9956495 AT news1 DOT radix DOT net> <835348240snz AT flag DOT demon DOT co DOT uk> NNTP-Posting-Host: argv.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Ben Ashley wrote: > Well, I never had the original one in the first place!!! Now, I have got it to > work, by placing extern "C" in front of *ALL* function prototypes in the header There is an other way to do this. Surround the function prototypes with #ifdef __cplusplus extern "C" { #endif /* here all the prototypes */ #ifdef __cplusplus } #endif With this the header file can be used in C and C++ and you don't need to put it before each function. Robert ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************