Open mantielero opened 4 years ago
Hi! Try to define COOLPROP_LIB
otherwise there will be no extern "C"
in the headers.
https://github.com/xlab/c-for-go/wiki/Parser-config-section#defines
With:
Defines:
COOLPROP_LIB: 1
I get the error:
processing coolprop-go.yml ⠋[ERR] ../../include/CoolPropLib.h:84:5: unexpected string literal "C", expected one of ['(', ')', '*', ',', ';', '[', _Bool, _Complex, _Noreturn, auto, char, const, double, enum, extern, float, identifier, inline, int, long, register, restrict, short, signed, static, struct, typedef, typedefname, typeof, union, unsigned, void, volatile]
So it fails here:
EXPORT_CODE double CONVENTION Props1SI(const char *FluidName, const char* Output);
I assume that EXPORT_CODE contains extern "C".
Any clue?
I am trying to wrap CoolProp. I am a newbie in go, coolprop and c-for-go, so what can go wrong? ;oP
I am trying the following:
I am getting the following error:
so it complains about line 142.
Any idea about what am I doing wrong?