C_C++
Linux/Unix 프로그래밍을 하다보면 GCC 버전에 영향을 받는 경우가 있다. 예를 들면 ACE 라이브러리를 컴파일 할 경우, gcc-4.x 대의 버전에는 컴파일 오류가 발생한다. 그래서 부득이 gcc/g++ 을 다시 설치하려고 해도 여의치 않는 경우가 많다. 이럴 경우 다른 배포판을 찾아보게 되는데, 여기에 배포판마다 가지고 있는 gcc의 버전 정보를 싣는다. Distribution Version Compiler version Provided by Date BeOS [...]
예제 프로그램을 컴파일 하려던 중 아래의 에러 메시지를 만났다. Formatter.cpp:45: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x Formatter.cpp:45: warning: extended initializer lists only available with -std=c++0x or -std=gnu++0x 문제의 발단은 다음의 문구였다. pthread_mutex_t dateLock = PTHREAD_MUTEX_INITIALIZER mutex 초기화를 위한 매크로 함수 PTHREAD_MUTEX_INITIALIZER 를 사용하기 위해서는 -std=c++0x 를 함께 사용하라는 메시지이다. 즉, 문제 [...]
오늘 C++ 책에서 나온 소스코드를 컴파일하다 이상한 에러를 발견했다. 17-2.cpp:84: error: expected unqualified-id before numeric constant17-2.cpp:84: error: expected initializer before numeric constant 다음의 링크에서 해답을 찾을 수 있었다. http://bytes.com/topic/c/answers/752247-what-does-expected-unqualified-id-before-numeric-constant-mean All uppercase names are often used for preprocessor macros, which doesn’t respect namespace scopes. Therefore such names should generally be avoided for everything else. 즉 어디에선가 [...]
Continue reading about error: expected unqualified-id before numeric constant
KLDP 에서 자료를 검색하던 중 GDB와 관련된 매우 유용한 글타래를 발견하고 여기에 링크를 걸어둔다. http://kldp.org/node/71806
HPUX 를 사용하게되면 필연적으로 aCC와 친해져야 하는데, 보통의 gcc, g++과는 옵션 및 사용방법이 틀려 고생하는 경우가 있다. 아래의 링크에 aCC 매뉴얼을 링크해 두었다. http://docs.hp.com/en/8/commandsyntax.htm
C++ 프로그래밍을 공부하던 중, 예제 프로그램을 컴파일하다 다음과 같은 에러를 발견했다. Description Resource Path Location Type‘nocreat’ is not a member of ‘std::ios’ Config.cpp /TEMS/src line 40 C/C++ Problem 환경은 이클립스 3.5.2 버전이었으며, g++ 버전은 version 4.4.3 (Ubuntu 4.4.3-4ubuntu5) 이었다. 문제의 원인을 찾기 위해 구글링을 해보니 답은 간단했다. [...]
// funcPtr.c// // Copyright 2009 Kim Sung-tae <pchero@MyNote>// // This program is free software; you can redistribute it and/or modify// it under the terms of the GNU General Public License as published by// the Free Software Foundation; either version 2 of [...]
* ESC 문자열과 의미 ESC 문자열 ASCII CODE 의 미 \n 10 new line : 새로운 줄의 시작 \t 9 tab : 커서 또는 프린터 헤드를 tab 만큼 이동 \b 8 backspace : 뒤로 한 칸 움직임 \r 13 carriage return : 그 줄의 처음으로 이동 \f 12 form feed : 프린터의 종이를 다음 페이지로 [...]


최근 답글