Linux/Ubuntu2010. 9. 14. 22:47
커널 컴파일을 하려는데 이런 에러가 발생한다.
솔찍히 건드린건 하나도 없고, 그냥 yaffs2만 추가했는데 ㅠ.ㅠ

ld: /ubuntu/omnibook/sections.lds: No such file: No such file or directory

[링크 : https://bugs.launchpad.net/ubuntu/+source/linux/+bug/505420]

이넘이. HP 노트북 omnibook용 추가 모듈(?)로 인해 발생하는 에러인것 같지만..
잘은 모르겠는데 흐아.. 리눅스 머신이 싱글코어 1.8기가 인가 그런데 언제 또 다시 컴파일 돌리나 ㅠ.ㅠ
[링크 : http://sourceforge.net/projects/omke/]



make menuconfig 에서 / 로 omnibook을 검색하니
아래와 같이 나온다. 이녀석이 기본으로 켜져있어서 omnibook 오류가 난듯 하다.

최상위에서 부터                      Ubuntu Supplied Third-Party Device Drivers
그리고 그 메뉴의 가장 아래에        Kernel module for HP and Toshiba laptops

Posted by 구차니
아이콘 정도는 좀 유지해달라구 ㅠ.ㅠ
아니.. 그걸 떠나서 한글과 영어의 차이일려나?

한글버전 Visual Studio가 어색한 1인! ㅠ.ㅠ


VS2010 / VS6
Posted by 구차니
VC6.0 에서 VC10.0 으로 점프하니 이거 UI들이 어디로 짱박혔는지 도무지 알수가 없다 -_-
지들이 무슨 말년병장도 아니고 우씨!

암튼, Dialog Editor를 띄우고 우측의 "도구 상자"에 마우스를 가져다 대면 각종 컨트롤의 목록이 나타난다.


Posted by 구차니
Programming/C++ STL2010. 9. 13. 14:02
VC6.0 프로젝트를 VS2010으로 이전하다가, 코드는 아래와 같은데
std::vector<vectoriter>::iterator iter;
            vectoriter *pch = iter;

이런 에러가 발생이 되었다.
 error C2440: '초기화 중' : 'std::_Vector_iterator<_Myvec>'에서 'vectoriter *'(으)로 변환할 수 없습니다.

STL의 vector를 사용하는데, 어짜피 이녀석도 array로 호출은 되지만,
포인터 레벨의 차이인지 에러를 출력한다.
The usual way is &v[0]. (&*v.begin() would probably work too, but I seem to recall there's some fluffy wording in the standard that makes this not 100% reliable)

[링크 : http://stackoverflow.com/questions/1388597/stdvector-and-c-style-arrays]

 vectoriter *pch = &iter[0]; // no error
 vectoriter *pch = &iter; // error
흐음.. vector.begin() 역시 [0]과 같은 의미인것 같으나.. 여전히 템플릿은 머가먼지... OTL

'Programming > C++ STL' 카테고리의 다른 글

C++ 레퍼런스 변수(reference variable)  (4) 2010.09.15
C++0x  (0) 2010.09.15
스마트 포인터(smart pointer)  (2) 2010.09.09
C++ 강좌/문법/reference  (4) 2010.09.09
STL 그리고 Template  (0) 2010.09.09
Posted by 구차니
WTL 은 현재(2010.09.13) 8.1 버전까지 소스포지에 올려져 있으나,
릴리즈 상으로는 VisualStudio 2008 까지만 지원한다. (VS2008이 VC9.0 이려나?
[링크 : http://sourceforge.net/projects/wtl/]

아무튼 2010에 설치를 하려면 소스트리에서 직접 받아야 하는데
[링크 : http://wtl.svn.sourceforge.net/viewvc/wtl/trunk/wtl/Wizards/?view=tar]
위의 링크에서 AppWiz만 받거나, 직접 setup100.js 를 트리에서 받아도 상관은 없다.

Step 1. WTL\AppWiz 에서 버전에 맞는 스크립트를 골라 더블클릭으로 실행
           x로 끝나는 js 파일은 express 버전용이다. (2005/2008/2010 express 버전용 파일)


Step 2. Win7의 경우 사용자 계정 컨트롤이 뜨고 설치가 된다.

Step 3. 설치가 되고 나서 비쥬얼 스튜디오를 다시 실행하면 ATL/WTL이 추가되어있다.


하지만, 컴파일이 안되서... OTL
C:\WTL81_9127\Include 의 헤더들을
C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include 로 복사해주었다.
Posted by 구차니
프로젝트 컴파일을 하려는데
 stdafx.h(22): fatal error C1083: 포함 파일을 열 수 없습니다. 'atlapp.h': No such file or directory
위와 같은 에러가 발생하면, ATL이 아닌 WTL을 설치해주어야 한다.

하지만, Visual Studio 2005 까지는 WTL8.0이 지원 하지만,
아직 Visual Studio 2010(VS 10.0 버전인가..)을 정식 지원하는 WTL은 존재하지 않는다.

아래와 같은 방법으로 수동설치를 하면 된다는데.. VS2010에서 되려나?
To manually install AppWizard for VC++ .NET 2002/2003, copy all WTLAppWiz.* files from AppWiz\Files to VC++ .NET projects directory, %VC7DIR%\Vc7\vcprojects, where %VC7DIR% is the directory where VC++ .NET 2002/2003 is installed. After that, open WTLAppWiz.vsz and modify the like that contains ABSOLUTE_PATH to contain %WTLDIR%\AppWiz\Files, where %WTLDIR% is the directory where WTL files are.

머.. 정 안되면 작업중인 WTL8.1을 다운로드 받아서 해보는 수 밖에 -ㅁ-?
[링크 : http://wtl.svn.sourceforge.net/viewvc/wtl/trunk/wtl/Wizards/AppWiz.tar.gz?view=tar]
    [링크 : http://stackoverflow.com/questions/2260351/how-can-i-install-wtl-8-0-project-wizards-in-vs-2010]

아래는 WTL 설치파일 중 readme.html 파일의 내용중 WTL8.0 파일 목록이다.

Packing List

 

File Name: Description:

readme.htm this file
Ms-PL.txt license
 
include\
    atlapp.h message loop, interfaces, general app stuff
    atlcrack.h message cracker macros
    atlctrls.h standard and common control classes
    atlctrlw.h command bar class
    atlctrlx.h bitmap button, check list view, and other controls
    atlddx.h data exchange for dialogs and windows
    atldlgs.h common dialog classes, property sheet and page classes
    atlfind.h Find/Replace support for Edit and RichEdit
    atlframe.h frame window classes, MDI, update UI classes
    atlgdi.h DC classes, GDI object classes
    atlmisc.h WTL ports of CPoint, CRect, CSize, CString, etc.
    atlprint.h printing and print preview
    atlres.h standard resource IDs
    atlresce.h standard resource IDs for Windows CE
    atlscrl.h scrollable windows
    atlsplit.h splitter windows
    atltheme.h Windows XP theme classes
    atluser.h menu class, USER object classes
    atlwince.h specific support for Windows CE Mobile platforms
    atlwinx.h extensions of ATL windowing support
 
Samples\
    Aero\... Vista Aero glass showcase
    Alpha\... Windows XP 32-bit (alpha) toolbar images
    BmpView\... bitmap file view sample
    GuidGen\... WTL version of the GuidGen sample
    ImageView\... Full-featured PPC frame-view application
    MDIDocVw\... WTL version of the MDI sample
    MiniPie\... port of the SDK sample for Mobile devices
    MTPad\... multithreaded notepad sample
    SPControls\... Barebone SmartPhone dialog application
    TabBrowser\... Web browser using TabView
    Wizard97Test\... Wizard97 showcase sample
    WTLExplorer\... Explorer-like application sample
 
AppWiz\
    setup70.js AppWizard setup program for VC++ .NET 2002
    setup71.js AppWizard setup program for VC++ .NET 2003
    setup80.js AppWizard setup program for VC++ 2005
    setup80x.js AppWizard setup program for VC++ 2005 Express
    Files\... WTL AppWizard for VC++ .NET 2002 and 2003 files
 
AppWizCE\
    setup80.js AppWizard setup program for VC++ 2005
    Files\... WTL AppWizard for VC++ 2005 files
 
AppWizMobile\
    setup80.js AppWizard Mobile setup program for VC++ 2005
    Files\... WTL AppWizard Mobile for VC++ 2005 files

[링크 : http://www.devpia.com/MAEUL/Contents/Detail.aspx?BoardID=50&MAEULNo=20&no=503474&ref=503474]
[링크 : http://winapi.co.kr/project/library/wtl/1-1.htm]
[링크 : http://www.microsoft.com/downloads/...E5BA5BA4-6E6B-462A-B24C-61115E846F0C] WTL 8.0
Posted by 구차니
구 버전의 비쥬얼 스튜디오에서 생성한 프로젝트의 경우
해당 버전의 stdafx.h 를 생성하면서 _WIN32_WINNT 의 선언을 끌어 오게 되는데
그로인해 새로운 버전과 충돌이 나면서 컴파일이 되지 않는 문제가 발생된다.

프로젝트를 컴파일 하면, atlcore.h 파일에서 이 부분이 오류가 난다고 지적을 해주고

그 선언을 추적해보면, sdkddkver.h 에 0x0601로 선언이 되어있다.

하지만, 프로젝트 내의 stdafx.h 에서는 0x0400 으로 선언이 되어 있기 때문에
위의 조건식에서(#if _WIN32_WINNT < 0x0403) 에러가 발생이 되게 된다.

그러므로 이 값을 임의로 수정해주면 되는데, sdkddkver.h 의 값을 끌어오면 되지 않을까 생각이 된다.

[링크 : http://vsts2010.net/411]
Posted by 구차니
Linux2010. 9. 12. 22:57
top을 하면 아래와 같은 결과들이 나온다.

대개 cpu를 100% 돌리고 있어도 1을 겨우겨우 넘기는 편이라
load average 라는 부분이 멀 의미하는건가 고민이 들어 찾아 보게 되었는데..
혼자 쓸때는 컴파일 속도가 느려지는게 느껴져서 한번에 하나이상돌리지 않아 이 값이 1이상 나오기가 좀 힘들긴하다.
결론은.. 머 알아서? ㅋㅋ

시스템의 최근 1분, 5분, 15분에 대한 각각의 평균 부하율(load average: 0.03, 0.05, 0.05)
Load average: 작업의 대기시간. 값이 1이 나왔다면 1분 동안 평균 1개 정도의 프로세서가 대기상태에 있다는 것이다.
서버마다 차이가 있긴 하지만 5 정도면 서버가 부하를 받는 다고 생각한다. 과부하는 10 ~ 15이상이면 과부하라고 본다.

[링크 : http://phiz.kr/linuxtip/169350]

결론은 이거였다.
CPU 1개당 2까지의 로드까진 정상으로 본다.
이게 무슨말인가? 현재의 대부분에 쓰이고 있는 요즘의 평균적인 제온 시스템이라면 CPU당 2까지의 로드까진 문제없는것으로 본다는것이다.
그렇다면 듀얼코어같이 HT(Hyper Threading)을 지원하는 CPU는 어떻게 계산하는지 물어보았다.
HT의 경우 CPU 2개로 친다는것이다. 쿼드코어의 경우에는 CPU4개로 친다는것이다.
고로 듀얼코어 CPU를 2개 꼽은 서버라고 하면 4 CPU x 2 = 8 의 로드까진 괜찮다는것으로 친다는것이 결론이었다.

[링크 : http://www.ysy2080.com/uribury/...document_srl=207]

[링크 : http://linux.die.net/man/1/top]

'Linux' 카테고리의 다른 글

bash - 이전 디렉토리로 이동하기 move to previoud directory  (2) 2010.09.19
mkinitramfs  (0) 2010.09.19
curl  (0) 2010.09.11
verbose가 모야?  (4) 2010.07.29
쉘스크립트의 stdout / stderr 리다이렉션(redirection c)  (0) 2010.07.07
Posted by 구차니
일요일은 정말 깨어있는 시간보다 자는 시간이 더 길었던 하루
3시 부터 자서 11시에 일어나고
2시 부터 또 자서 6시에 일어나고


출근시간은 고작 예전보다 40분 당겨졌을뿐인데
기상시간은 1시간이 당겨졌고, 그로 인해서 생각보다 피로가 많이 누적되었나 보다.

아무튼.. 남자의 자격에서
자기전에(오후 2시) 열심히 율동을 배우더니..
자고나서도 열심히 율동을 배운다고 했떠니 누나가 깔깔깔 비웃는다 -_-

'개소리 왈왈 > 직딩의 비애' 카테고리의 다른 글

토요일의 평일근무  (4) 2010.09.25
먼가 미칠듯이 바쁜 하루하루  (0) 2010.09.18
개인용 pc 획득!  (2) 2010.09.03
생존신고  (0) 2010.09.03
출근 하루전  (4) 2010.08.31
Posted by 구차니
Linux2010. 9. 11. 22:49
android platform을 받는데 쓰인녀석인데..

curl is a tool to transfer data from or to a server, using one of the supported protocols (HTTP, HTTPS, FTP, FTPS, TFTP, DICT, TELNET, LDAP or FILE). The command is designed to work without user interaction.

curl offers a busload of useful tricks like proxy support, user authentication, ftp upload, HTTP post, SSL (https:) connections, cookies, file transfer resume and more. As you will see below, the amount of features will make your head spin!

[링크 : http://linux.die.net/man/1/curl]
[링크 : http://curl.haxx.se/]

일단 curl은 wget이 지원하는 모든 프로토콜을 지원하므로
기능상으로는 wget과 유사한 느낌이지만, 조금더 막강해진 녀석이다.

GNU Wget is a free utility for non-interactive download of files from the Web. It supports HTTP , HTTPS , and FTP protocols, as well as retrieval through HTTP proxies.

[링크 : http://linux.die.net/man/1/wget]

'Linux' 카테고리의 다른 글

mkinitramfs  (0) 2010.09.19
top (1) - load average ?  (4) 2010.09.12
verbose가 모야?  (4) 2010.07.29
쉘스크립트의 stdout / stderr 리다이렉션(redirection c)  (0) 2010.07.07
bash 쉘 스크립트 에서 파일이 존재하지 않을 경우  (0) 2010.06.24
Posted by 구차니