mirror of https://github.com/linuxdeepin/dtkcore
fix: global function is missing
添加了默认隐藏符号的编译参数后,全局函数也需要导出才行。否则可能出现ld错误 Log: 修复获取全局版本号未导出的问题 Change-Id: I4c5c41c8c513e2571e458a99c61c14ea11d35639
This commit is contained in:
parent
397f6cc465
commit
5753a9d000
|
@ -68,6 +68,6 @@
|
|||
#define DTK_VERSION DTK_VERSION_CHECK(DTK_VERSION_MAJOR, DTK_VERSION_MINOR, DTK_VERSION_PATCH, DTK_VERSION_BUILD)
|
||||
|
||||
extern "C" {
|
||||
int dtkVersion();
|
||||
const char *dtkVersionString();
|
||||
int LIBDTKCORESHARED_EXPORT dtkVersion();
|
||||
const LIBDTKCORESHARED_EXPORT char *dtkVersionString();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue