diff --git a/src/softIoc/softMain.cpp b/src/softIoc/softMain.cpp index 22874c83e..b476f00c7 100644 --- a/src/softIoc/softMain.cpp +++ b/src/softIoc/softMain.cpp @@ -55,7 +55,6 @@ #include #include -#include "registerRecordDeviceDriver.h" #include "registryFunction.h" #include "epicsThread.h" #include "dbStaticLib.h" @@ -65,6 +64,8 @@ #include "iocInit.h" #include "iocsh.h" +extern "C" int softIoc_registerRecordDeviceDriver(struct dbBase *pdbbase); + #define QUOTE(x) #x #define DBD_FILE(top) QUOTE(top) "/dbd/softIoc.dbd" @@ -117,7 +118,7 @@ int main(int argc, char *argv[]) exit(EXIT_FAILURE); } - registerRecordDeviceDriver(pdbbase); + softIoc_registerRecordDeviceDriver(pdbbase); registryFunctionAdd("exit", (REGISTRYFUNCTION) exitSubroutine); // X aCC 331 while (argc>1 && **argv == '-') {