0
I have a function that comes from a . lib that returns me a struct
tabela GSTV(vector<double> inpA, vector<double> inpB);
this struct is defined as follows::
struct tabela {
vector<int> Z;
vector<double> F;
vector<double> S;
vector<double> Y;
};
But I’m turning this . lib into a . dll with extern "C"
When I have for a vector I usually do:
vector<int> GSTV(vector<double> inpA, vector<double> inpB);
become
extern "C" MINHADLL_API void GSTV( vector<double> inpA, vector<double> inpB, vector<int> &GSTV_ans);
And so by the argument I Gero my vector, however for a struct that is not working.