Hi All,
Something I noticed today in attempting to compile motor R7-2-2 against base-7.0.6 (on ubuntu-20.04.2.0) was that I was getting this error:
../motordrvCom.h:225:1: note: the macro ‘epicsShareFunc’ had not yet been defined
In file included from ../motordevCom.cc:73:
/home/ajf/epics/base-7.0.6/include/shareLib.h:169: note: it was later defined here
169 | # define epicsShareFunc __attribute__ ((visibility("default")))
I solved it by adding "shareLib.h" to "motordrvCom.h" like this:
#include <shareLib.h>
#include "motor.h"
That allowed the compile to work. But whether this the best way to solve the problem I don't know? I wondered if anyone else had seen this compilation error?
Cheers, Andy