C++ Int, char, double, 등등의 자료형 사이즈..

C++ 에서의 자료형의 크기는 컴파일러에 따라 좌우된다고 알고 있었다.

틀린 내용은 아니였지만.. 정확하지는 않았다.

아래 링크에서 정확한 내용을 알 수 있었다.

정확하게는… 크기는 정해져 있지 않지만, C++ 표준에서 지정하는 최소 사이즈가 있다는 것이다.

The C++ standard does not specify the size of integral types in bytes, but it specifies minimum ranges they must be able to hold. You can infer minimum size in bits from the required range and the value of CHAR_BIT macro, that defines the number of bits in a byte (in all but the most obscure platforms it’s 8).

출처 : http://stackoverflow.com/questions/589575/size-of-int-long-etc

오랫만에 삽질…

너무나 간단한 문제..

오라클을 설치하는데.. 자꾸 환경변수 오류가 나타나서 의아했다.
분명히 환경변수 설정을 해 뒀는데… 이상하게 자꾸 오류가 발생하는 것..

답은.. 언제나 그렇듯 간단했다.

내가 깜박하고 export 선언을 하지 않은 채로 변수를 설정했던것… 에휴.

INFO: /usr/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside

oracle 설치 도중 다음의 에러가 나타났다

INFO: /usr/bin/ld: cannot find /usr/lib/libpthread_nonshared.a inside

참조되는 라이브러리 링크 디렉토리 내에서 libpthread_nonshared.a 라이브러리를 찾을 수 없어서 나타나는 오류다.
다음을 입력해준다.

sudo ln -s /usr/lib/i386-linux-gnu/libpthread_nonshared.a /usr/lib/libpthread_nonshared.a