본문 바로가기
BackEnd FrontEnd/C , C++

arm cross compile 시 curl negative size error 발생하는 경우

by forkballpitch 2019. 12. 18.
반응형

/opt/arm-2013.11/arm-none-linux-gnueabi/include/curl/curlrules.h:142:3: error: size of array '__curl_rule_01__' is negative
   __curl_rule_01__
   ^
/opt/arm-2013.11/arm-none-linux-gnueabi/include/curl/curlrules.h:152:3: error: size of array '__curl_rule_02__' is negative

 

에러가 나는경우 아래와 같이  사이즈를 줄여준다.

In case system reports __curl_rule_01__ or __curl_rule_02__ is negative make the following changes to /usr/include/curl/curlbuild.h:

Add the following lines:

  • define CURL_SIZEOF_LONG 4
  • define CURL_SIZEOF_CURL_OFF_T 4
반응형

'BackEnd FrontEnd > C , C++' 카테고리의 다른 글

linux C/C++ mysql 사용하기  (0) 2020.01.21
Mac 에서 openssl 설치하기  (0) 2019.12.29
C/C++ curl로 메일보내기 예제  (0) 2019.10.30
[C] curl 로 pcm 파일 전달하기  (0) 2019.10.23
c++ : send wav data with curl  (0) 2019.10.03