Hi,
I have some trouble linking a fortran object to a CVI project. I
managed to build a DLL (with corresponding *.h and *.lib files) from
the fortran sources using g77, gcc and link.exe from MSVC.
The functions prototype is:
#define ECGPU_REAL double
void inicializa_cero_(ECGPU_REAL *iondat,
ECGPU_REAL* iqtc,
ECGPU_REAL* iqrspa,
ECGPU_REAL* iqrsmw,
ECGPU_REAL* iqrs,
ECGPU_REAL* iondaq,
ECGPU_REAL* iqt);
When linking my CVI project I get the following error message:
Undefined symbol '_inicializa_cero_' referenced in "analyse.c".
This indicates in my humble opinion a problem with the name mangling.
CVI expects functions to have a '_' prefix while link/g77 doesn't
procedure a underscore for fortran functions.
Is there any solution for this dilemma?
Best regards,
Christian