본문 바로가기
728x90
728x90

BackEnd FrontEnd/C , C++13

[networkprogramming] mac에서 bind코드가 잘 안될때 if (bind(server_desc_, (struct sockaddr*) &h_addr_, sizeof(h_addr_)) == -1) { 이 코드를 아래 코드로 변환해준다 if (::bind(server_desc_, (sockaddr *) &servaddr, sizeof(servaddr)) < 0) { 2020. 1. 21.
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.
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
728x90