Hi,
I am trying to set up a cardiac simulator using CVODE package.
I have a integrator.cpp file where I set up all the parameters to call the CVODe package.
The file compiles just fine, but when I try to build it it crashed with a multiple definition error on all the functions and variables defined in the file.
This problem is portable from VC++ to cygwwin g++
here is the error in VC++:
integrator.obj : error LNK2005: "public: void __thiscall CDFNCell::CVode_run(double,double * const)" (?CVode_run@CDFNCell@@QAEXNQAN@Z) already defined in cardiacsimulator.obj
integrator.obj : error LNK2005: _func_f already defined in cardiacsimulator.obj
integrator.obj : error LNK2005: "public: void __thiscall CDFNCell::CVode_f(int,double,struct _generic_N_Vector *,struct _generic_N_Vector *,void *)" (?CVode_f@CDFNCell@@QAEXHNPAU_generic_N_Vector@@0P AX@Z) already defined in cardiacsimulator.obj
.......
Please help!
Thx