Mail Archives: djgpp/1994/05/03/10:22:53
> I have some functions written in GAS format that I used fine with
> the C compiler. However, when I switched over to doing C++ I
> can't get the compiler to recognize the assembly functions.
C++ mangles the names, so you have to modify your prototype to tell the
compiler that these are C functions. You'll find some examples of how to do
this in some of the djgpp include files. They look something like this:
#ifdef __cplusplus
extern "C" void foo (int);
#else
void foo (int);
#endif
- Raw text -