Programming
‘__FILE__ ‘, __LINE__’ 이란 무엇인가? 로그 라이브러리를 분석하던 중, __FILE__ 과 __LINE__ 이라는 구문을 발견하고 의문을 가져 내용을 찾아보았다. 아래의 주소에서 내용을 확인할 수 있었다. http://www.codeguru.com/forum/showthread.php?t=231043 정답은 __FILE__ 과 __LINE__ 은 전처리기(Preprocessor) 에서 지정해주는 매크로라는 것. __FILE__ 의 경우 현재 __FILE__ macro 를 사용한 파일의 이름을 나타내주고 __LINE__ 의 경우 현재 __LINE__ macro 를 사용한 [...]
사내에서 개발중인 제품을 테스트하기 위해 컴파일을 하던 도중, 아래의 오류를 발견했다. mysqlclient 라이브러리를 함께 사용하는 부분이 있었는데, Linking 을 하던 도중 에러가 발생한 것이다. /usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_close_free_options’: (.text+0xd7d): undefined reference to `SSL_CTX_free’ /usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_get_ssl_cipher’: (.text+0×1081): undefined reference to `SSL_get_current_cipher’ /usr/lib/mysql/libmysqlclient.a(client.o): In function `mysql_real_connect’: (.text+0x3a4c): undefined reference to `SSL_get_peer_certificate’ /usr/lib/mysql/libmysqlclient.a(client.o): In function [...]
Continue reading about undefined reference to `SSL_CTX_free’
Stack Overflow 에서 상당히 유용한 스레드를 발견하여 이곳에 싣는다. 내용은 멀티 스레드 환경에서 네트워크 프로그램을 디버그 할 때 어떻게 gdb를 사용하는가? 이다. Enable core dump saving in your environment. Run command ulimit -c unlimited and rerun your program. When it crashes, load generated core dump in gdb and look backtraces of crash. In [...]
Continue reading about How to use gdb in Multi Threaded Network Program
프로그램 TEST 중 아래와 같은 오류가 발생했다. 결과는 Core dump. jonathan@jonathan-laptop:~/workspace/TEST$ ./TEST *** stack smashing detected ***: ./TEST terminated ======= Backtrace: ========= /lib/tls/i686/cmov/libc.so.6(__fortify_fail+0×50)[0xb775c390] /lib/tls/i686/cmov/libc.so.6(+0xe233a)[0xb775c33a] ./TEST[0x804a2f4] ./TEST[0x8049189] ./TEST[0x8049258] ./TEST[0x8049205] /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb7690bd6] ./TEST[0x8049081] ======= Memory map: ======== 08048000-0804f000 r-xp 00000000 08:05 7344439 /home/jonathan/workspace/TEST/TEST 0804f000-08050000 r–p 00007000 08:05 7344439 /home/jonathan/workspace/TEST/TEST 08050000-08051000 rw-p 00008000 08:05 7344439 /home/jonathan/workspace/TEST/TEST 08051000-080fd000 rw-p 00000000 [...]
HP 장비에서 aCC 로 컴파일을 하던도중 아래의 에러가 발생했다. “/opt/aCC/include_std/utility”, line 99: error #2070: incomplete type is not allowed first_type first; ^ detected during: instantiation of class “std::pair<_TypeT, _TypeU> [with _TypeT=const std::string, _TypeU=char *]” at line 97 of “/opt/aCC/include_std/rw/tree” instantiation of class “__rw::__rw_rb_tree_node<_Alloc, _Val, _Key, _KeyOf> [with _Alloc=std::allocator<std::pair<const std::string, char *>>, _Val=std::pair<const std::string, char *>, [...]
Unix 는 장비도 다양하고, 버전도 다양하다. HP UX에 관련한 Hardware/OS support 에 관한 리스트는 아래의 링크에서 찾을 수 있다. http://www.hp.com/go/hpuxservermatrix 그리고 다른 HP UX 에 관한 CPU/OS support에 관한 내용은 아래의 링크에서 찾을 수 있다. http://search.cpan.org/~rjbs/perl-5.12.3/README.hpux
Continue reading about HP-UX Hardwar/OS support & CPU/OS support
Eclipse에서 Autoconf 사용시, Autotools 가 실행될 디렉토리를 설정하는 부분이 있다. 위의 장면에서 Configure tool directory 라고 적혀있는 섹션이 바로 그 부분인데, 여기에 아무 경로나 입력하면 안된다. Resource 탭에 나와있는 Location 부분을 루트 디렉토리로 하는 절대경로를 지정해야 한다… 이것을 몰라 몇시간을 헤메었는지…
Invoking autoreconf in build directory: /home/jonathan/workspace/CIOD/CIOD_CTMP/0001.WorkSource_Automake/obsource autoreconf -i Can’t exec “libtoolize”: No such file or directory at /usr/bin/autoreconf line 189.Use of uninitialized value in pattern match (m//) at /usr/bin/autoreconf line 189.autoreconf: `configure.ac’ or `configure.in’ is required Configuration failed with error eclipse 와 autoconf 연동중.. 위와 같은 오류 발생. 아래의 명령어로 해결. # sudo apt-get install [...]
코딩을 하면서 느낀 점에 대하여 쓴 글타래.. 많은 분들이 댓글을 달아주셨다. 한번씩 내가 잘하고 있는지/아닌지 를 파악하는데 중요한 지침서가 될 것 같다. 생각이 나면 한번씩 들려보자. http://kldp.org/node/117429
Eclipse 에서 제공하는 여러가지 plug-in 들을 사용하면 레드마인과의 일감 연동을 할 수 있다. 이를 이용하면 eclipse 에서도 redmine 으로 일감 보고/가져오기 등의 기능을 수행할 수 있어 매우 편리하다. 먼저 redmine 과 eclipse 가 연동된 필자의 작업환경을 보자. 먼저 가장 기본이 되는 내용은 Redmine Wiki 의 내용이다. 지금 여기에 적는 내용 역시 redmine wiki 의 내용을 [...]




최근 답글