From 57b8cdca25c5d6e4b04c74f4abe2269c6788e3f9 Mon Sep 17 00:00:00 2001 From: kpetersn Date: Wed, 23 Aug 2017 10:47:14 -0500 Subject: [PATCH] Added extern "C" to iocsh registration code. Fixes #69 --- motorApp/HytecSrc/HytecMotorDriver.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/motorApp/HytecSrc/HytecMotorDriver.cpp b/motorApp/HytecSrc/HytecMotorDriver.cpp index a66da364..794d0ca2 100644 --- a/motorApp/HytecSrc/HytecMotorDriver.cpp +++ b/motorApp/HytecSrc/HytecMotorDriver.cpp @@ -1067,6 +1067,9 @@ extern "C" int Hytec8601Configure(const char *portName, return(asynSuccess); } +extern "C" +{ + static const iocshArg Hy8601ConfigArg0 = {"portName", iocshArgString}; static const iocshArg Hy8601ConfigArg1 = {"numAxes", iocshArgInt}; static const iocshArg Hy8601ConfigArg2 = {"movingPollPeriod", iocshArgInt}; @@ -1110,4 +1113,4 @@ static void Hytec8601Register(void) epicsExportRegistrar(Hytec8601Register); - +}