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

@@ -58,4 +58,7 @@ static void exampleDatabaseRegister(void)
iocshRegister(&exampleDatabaseFuncDef, exampleDatabaseCallFunc);
}
}
epicsExportRegistrar(exampleDatabaseRegister);
extern "C" {
epicsExportRegistrar(exampleDatabaseRegister);
}