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

@@ -66,4 +66,7 @@ static void exampleServerRegister(void)
iocshRegister(&exampleServerFuncDef, exampleServerCallFunc);
}
}
epicsExportRegistrar(exampleServerRegister);
extern "C" {
epicsExportRegistrar(exampleServerRegister);
}