문제

I would like to check if I have openssl installed using C/C++ code. Is it even possible? I mean, is there a macro, or something which will be a portable way of doing this? Thanks

도움이 되었습니까?

해결책

The following will work on Windows and Linux:

#ifdef WIN32
libHandle = LoadLibrary( libraryName );
#else
libHandle = dlopen( libraryName, RTLD_LOCAL | RTLD_NOW );
#endif
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top