Mail Archives: djgpp/1997/12/13/13:39:39
Mike McLean schrieb:
>
> // part from luth.h the header file
>
> // Prototypes for File routines
>
> void fileSave(void);
>
Change this to:
#ifdef _cplusplus
extern "C"
#endif
void fileSave(void);
> // function in file.cpp
>
> void fileSave(void)
and this to:
extern "C" void fileSave(void)
This is needed when you want to use functions from
C++ in C. For the header files you can use also the
trick (if you have more than one prototype)
#ifdef _cplusplus
extern "C" {
#endif
/* Now all you prototypes in the normal notation */
#ifdef _cplusplus
}
#endif
Robert
--
******************************************************
* email: Robert Hoehne <robert DOT hoehne AT gmx DOT net> *
* Post: Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW: http://www.tu-chemnitz.de/~sho/rho *
******************************************************
- Raw text -