C
Chris Gordon-Smith
I am tying to call a Pascal function from C++, and vice versa.
Does anyone know how to do this, or where detailed information on this topic
can be found?
For the C++ to Pascal call I have tried declaring the Pascal function as:-
extern "C" void PASCALTESTFUNC1();
within my C++ code. However, the linker is giving me an unresolved
reference, even though I have a Pascal object file with a Pascal procedure
called PASCALTESTFUNC1.
extern "Pascal" doesn't compile.
Any comments or pointers will be appreciated.
I'm running on SuSE Linux 9.0, using GNU g++ for compiling C++, and the fpc
Free Pascal compiler for Pascal.
Does anyone know how to do this, or where detailed information on this topic
can be found?
For the C++ to Pascal call I have tried declaring the Pascal function as:-
extern "C" void PASCALTESTFUNC1();
within my C++ code. However, the linker is giving me an unresolved
reference, even though I have a Pascal object file with a Pascal procedure
called PASCALTESTFUNC1.
extern "Pascal" doesn't compile.
Any comments or pointers will be appreciated.
I'm running on SuSE Linux 9.0, using GNU g++ for compiling C++, and the fpc
Free Pascal compiler for Pascal.