epicsExportRegistrar() must be inside extern "C" block

This commit is contained in:
Andrew Johnson
2014-04-18 17:53:12 -05:00
parent 597bca1ca5
commit 83f2fa9d9a
5 changed files with 19 additions and 5 deletions

View File

@@ -84,4 +84,7 @@ static void exampleLinkRegister(void)
iocshRegister(&exampleLinkFuncDef, exampleLinkCallFunc);
}
}
epicsExportRegistrar(exampleLinkRegister);
extern "C" {
epicsExportRegistrar(exampleLinkRegister);
}