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);
}

View File

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

View File

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

View File

@ -61,4 +61,6 @@ static void registerChannelProviderLocal(void)
}
}
epicsExportRegistrar(registerChannelProviderLocal);
extern "C" {
epicsExportRegistrar(registerChannelProviderLocal);
}

View File

@ -69,4 +69,7 @@ static void powerSupplyRegister(void)
iocshRegister(&powerSupplyFuncDef, powerSupplyCallFunc);
}
}
epicsExportRegistrar(powerSupplyRegister);
extern "C" {
epicsExportRegistrar(powerSupplyRegister);
}