用g++编译程序报错,hidden symbol "g_bIsRtspWorking" is referenced by DSO。
解决方法:
在g_bIsRtspWorking前加上 __attribute__((visibility("default"))),即把
bool g_bIsRtspWorking;
修改为:
__attribute__((visibility("default")))bool g_bIsRtspWorking;
用g++编译程序报错,hidden symbol "g_bIsRtspWorking" is referenced by DSO。
解决方法:
在g_bIsRtspWorking前加上 __attribute__((visibility("default"))),即把
bool g_bIsRtspWorking;
修改为:
__attribute__((visibility("default")))bool g_bIsRtspWorking;