Mail Archives: djgpp/1996/06/21/13:12:21
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 *
*****************************************************************
- Raw text -