>  Q&A  >  본문

libcurl在64位centos下访问https错误

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

大家给点思路吧

伊谢尔伦伊谢尔伦2707일 전791

모든 응답(1)나는 대답할 것이다

  • 某草草

    某草草2017-04-24 16:01:08

    64비트 컴파일 문제를 고려할 때, 클래스 라이브러리를 컴파일할 때 다음과 같은 유사한 정의가 필요한가요?
    -D UNIX64

    회신하다
    0
  • 취소회신하다