Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想检查我是否使用 C/C++ 代码安装了 openssl。甚至可能吗?我的意思是,是否有一个宏,或者其他可以移植的方法?谢谢
以下将适用于 Windows 和 Linux:
#ifdef WIN32 libHandle = LoadLibrary( libraryName ); #else libHandle = dlopen( libraryName, RTLD_LOCAL | RTLD_NOW ); #endif