I rebuilt OpenCpn
after having added DECL_EXP . To compile , I had to add it in both ocpn_plugin.h and georef.h and add the DECL_EXP define in georef.h, but at the end I succeed
Unfortunately , I got the same link error !
At that time , the only solution I found was to create a new function calling the original one in pluginmanager.cpp :
in ocpn_plugin.h I added :
extern "C" DECL_EXP void DistanceBearingMercator_Plugin(double lat0, double lon0, double lat1, double lon1, double *brg, double *dist);
and in pluginmanager.cpp I added :
void DistanceBearingMercator_Plugin(double lat0, double lon0, double lat1, double lon1, double *brg, double *dist)
DistanceBearingMercator( lat0, lon0, lat1, lon1, &*brg, &*dist);
and in the plugin I called DistanceBearingMercator_Plugin ... and it works
I'll try to do that . Sorry I still do not control all the github possibilities.
But I don't think it's from my code because I just added a new instrument very similar to "_position" at the dashboard, working perfectly except when I call one of the georef functions
many thanks for your help