Mail Archives: djgpp/1998/02/05/08:45:22
dont quote me on this 'im fairly new to c++. I had a simular problem
when I wanted to link some asm routines into a djgpp prog.
at first it was just a normal .c prog and I used the simular conventions
as above
and all was ok.,but when I included some c++ code, and renamed to .cc to
compile as a c++ prog,
the compiler couldnt find the asm routines, so I used
extern "C" void my_asm_routine(int,int);
in the function declaration and it worked, i think its something to do
with differences in name conventions between C and C++ progs in the
object files????
- Raw text -