본문 바로가기
728x90

BackEnd FrontEnd67

linux C/C++ mysql 사용하기 $ apt-get install libmysqlclient-dev [ mysql.h 위치 찾기 ] mysql_config --cflags [ include mysql.h 방법 ] #include "/usr/include/mysql/mysql.h" (위에서 찾은 위치경로) [ 컴파일 방법 ] g++ -o 프로그램명 파일명.c -lmysqlclient 2020. 1. 21.
-Xss 옵션 개별 Thread의 Stack Size를 지정한다. Thread Stack Size가 1M 이고 Thread가 최대 100개 활성화 된다 최대 100M의 메모리를 사용하게 된다. 대부분의 경우 기본값을 그대로 사용하는게 바람직하다 많은 수의 Thread를 사용하는 Application의 경우 Thread Stack 에 의한 메모리 요구량이 높아지며 이로 인해 OOM이 발생 이런 경우에는 -Xss옵션을 이용해 Thread Stack Size를 줄여 주어야한다. 2019. 12. 30.
Mac 에서 openssl 설치하기 $ brew reinstall openssl@1.1 // 기존에 설치되어 있어서 재설치함 , 일반 설치는 brew install openssl ==> Reinstalling openssl@1.1 ==> Downloading https://homebrew.bintray.com/bottles/openssl@1.1-1.1.1d.catalina.bottle.tar.gz ==> Downloading from https://akamai.bintray.com/d7/d7f992ebfd78f80828051f6dc6a1a99aed405f86b0f39ea651fd0afeadd1b0f4?__gda__=exp=1577628458~hmac=45a5217af4f964e67bbb #############################.. 2019. 12. 29.
arm cross compile 시 curl negative size error 발생하는 경우 /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 /u.. 2019. 12. 18.
728x90