KSOLVERGetVersion
获得求解器产品版本信息。
接口定义
C Interface:
int KSOLVERGetVersion(KSOLVERVersion *ver);
参数
参数名 |
类型 |
描述 |
输入/输出 |
---|---|---|---|
ver |
KSOLVERVersion结构体指针 |
存储版本信息,非空。 |
输入/输出 |
依赖
#include "kml_solver.h"
#include "kml_service.h"
示例
C Interface:
int main() { KSOLVERVersion *ver = (KSOLVERVersion*)malloc(sizeof(KSOLVERVersion)); int res = KSOLVERGetVersion(ver); if (res != 0) { printf("Get version error.\n"); return 0; } printf("Component Name: %s\nComponent Version: %s\nSoftware Name: %s\nSoftware Version: %s\n", ver->componentName, ver->componentVersion, ver->softwareName, ver->softwareVersion); return 0; }
运行结果:
Component Name: BoostKit-kml Component Version: 1.8.0 Software Name: boostkit-kml-solver Software Version: 1.8.0

版本号以实际运行结果为准,上述结果仅供参考。
父主题: 单机版