c程序,用libcurl訪問一個https rest url, 同樣的程序在32位centos測試沒問題,但在64位centos下出錯:
gdb:
2296 CURLcode cr = curl_easy_perform(curl);
(gdb) n
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff37921c0 in pthread_mutex_lock () from /lib64/libpthread.so.0
大家給點思路吧
考慮64位元編譯問題,是否在編譯類別函式庫的時候需要如下類似定義
-D UNIX64