boost 라이브러리 설치방법

BOOST 라이브러리 사이트 : http://www.boost.org
 
1. Download

   boost 파일 : http://sourceforge.net/project/showfiles.php?group_id=7586
   bjam 파일 : http://sourceforge.net/project/showfiles.php?group_id=7586&package_id=72941&release_id=423149

   * 각각 다운로드 받은 후 압축을 해제 합니다.(boost_1_34_1)
   * Visual studio 2005 를 사용하신다면 bjam 파일을 반드시 다운로드 받습니다.(boost-jam-3.1.14)


2. bjam.exe 를 생성한다.

   a. Visual studio 6.0 일 경우
      $boostDir/tool/build/jam_src/build.bat  실행한다.
      -> $boostDir\tools\jam\src
      $boostDir/tool/build/jam_src/bin.ntx86/bjam.exe  파일 생성 된것을 확인한다.
    b. visual studio 2005 일 경우
      $boostJamDir/build.bat 실행한다.
      $boostJamDir/bin.ntx86/bjam.exe 파일 생성된것을 확인한다.

3. bjam.exe 파일을 $boostDir 로 이동합니다.

   $boostDir 폴더에는 boost-build.jam 파일이 있어야 합니다.


4. $boostDir 로 이동한후 아래 명령을 실행시킵니다.

   a. visual studio 6을 사용할 경우
       bjam --prefix=d:\boost "-sTOOLS=msvc" install

   b. visual studio 2005 을 사용할 경우
       bjam --prefix=d:\boost "-sTOOLS=vc-8_0" install > build_history.txt

      ※ VC8 에서 빌드를 하다보면 libs/regex/src/regex_traits_defaults.cpp에서
         charset 문제로 인한 에러가 발생합니다. 아마 OS 로케일이 동아시아쪽일
         경우에 발생하는 것으로 보입니다.
         이 문제는 http://boost.cvs.sourceforge.net/boost/ 에서 해당 파일을
         다운로드 받아 다시 빌드하면 해결됩니다.
         에러가 발생한 위치는  build_history.txt 파일을 열어 보면 됩니다.


   * TOOLS 옵션으로는 -msvc, -vc7, vc-8_0이 존재합니다.
      http://www.boost.org/more/getting_started.html#step2


   * 참고) 컴파일 시간이 무지 오래 걸립니다... .......


  ※ Boost와 STLport의 혼용
     Boost는 내부에서 STL라이브러리를 사용합니다. VC로 boost를 빌드하는 경우 VC와
     함께 설치되는 STL라이브러리나 STLport 중 하나를 선택해 빌드해야 합니다.
     하지만 VC8(VS.NET 2005)로 빌드할 경우에는 STLport를 사용할 수 없습니다.
     따라서, boost 라이브러리를 사용한다면 차라리 STLport를 설치하지 않는 것이
     include 설정에 대한 혼동을 막을 수 있습니다.


. d:\boost 폴더에서 include 파일과 lib 파일이 있는지 체크 합니다.
    * lib 폴더에는 반드시 컴파일된 dll, lib 파일이 있어야 합니다.


6. Visual studio 에서 boost 폴더 참조 시키기.
   a. visual studio 6 일 경우

      도구 -> 옵션 -> ... (프로그램을 삭제해서 기억 안남)

   b. visual studo 2005 일 경우

      도구 -> 옵션 -> 프로젝트 및 솔루션  -> VC++ 디렉터리 ->
      [우측화면]  다음파일의 디렉터리 표시 ->
         1. 포함파일 선택 -> D:\boost\include\boost-1_33_1 추가
         2. 라이브러리 파일 선택 -> D:\boost\lib 추가
       -> 확인

 

이상으로 설치 및 설정 방법에 대해 설명을 마치겠습니다.

 


http://blog.naver.com/softcool?Redirect=Log&logNo=110002556741

by 슈아이한 | 2008/02/15 22:31 | library | 트랙백(5) | 덧글(0)

error C2365: ‘SHCOLSTATE_TYPE_STR’ : redefinition; previous definition was ‘enumerator’

Compilation issues with Microsoft SDKs

When attempting to bring a project up to date with the latest Microsoft SDKs, the project did not compile. I had this issue before when re-compiling a project on Windows Vista and yesterday a similar problem occurred on Windows XP. I forgot how I solved the problem on Windows Vista - next time I encounter it I’ll describe the solution - but while its fresh in my mind, here is what I did to solve it on XP.

First a description of the problem: I needed to compile a project which requires the Windows Server 2003 R2 Platform SDK and the DirectShow SDK and the Windows Media Format 11 SDK. Now the DirectShow SDK is part of the platform SDK, but requires among other things a file named ddshow.h which is not available with the latest platform SDK, so you have to download and install the latest DirectX SDK in order to be able to compile the DirectShow that comes with the Platform SDK. Confused yet ?

Now after I installed the latest Platform SDK , the latest DirectX SDK (I only needed the libraries and include files) and the WMFSDK11 (Windows Media Format) SDK, set the new directories in Visual Studio 2005 and compiled, the compiler started choking on several types that it claimed are not recognized in propsys.h (such as PROPERTYKEY and REFPROPVARIANT). Now the thing is that these type are defined in wtypes.h, but there are several wtypes.h files that reside in the different SDK folders and only the wtypes.h in the WMFSDK11 include folder contained the definitions for the types the compiler complained about. So at this point I just put the include directory of the WMFSDK at the top of the list, recompiled and hoped for the best. This, however caused some clashes:

1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\shobjidl.h(1950) : error C2365: ‘SHCOLSTATE_TYPE_STR’ : redefinition; previous definition was ‘enumerator’
1> c:\wmsdk\wmfsdk11\include\shtypes.h(425) : see declaration of ‘SHCOLSTATE_TYPE_STR’
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\shobjidl.h(1951) : error C2365: ‘SHCOLSTATE_TYPE_INT’ : redefinition; previous definition was ‘enumerator’
1> c:\wmsdk\wmfsdk11\include\shtypes.h(426) : see declaration of ‘SHCOLSTATE_TYPE_INT’
1>c:\program files\microsoft platform sdk for windows server 2003 r2\include\shobjidl.h(1952) : error C2365: ‘SHCOLSTATE_TYPE_DATE’ : redefinition; previous definition was ‘enumerator’
1> c:\wmsdk\wmfsdk11\include\shtypes.h(427) : see declaration of ‘SHCOLSTATE_TYPE_DATE’
etc…

at this point, as it was getting late and my patience was growing short, I took the drastic step and simply opened up the above shobjidl.h in the SDK and commented out lines 1948 to line 1969 in that file which contain the redefinition of the types which were already defined in the WMF11’s shtypes.h

After that point, everything compiled fine. I suppose that are more elegant ways to do this but I don’t have the luxury to spend time on researching how to get the SDKs working together in perfect harmony - and you probably don’t have that time either so hopefully, this will save you the time I wasted.

Below is the order of the include folders that was set in Visual Studio 2005 (right click and select View Image or something similar to view it in a normal size)

include dirs

Note that the Server 2003 R2 Platform SDK is replaced by the new Windows SDK - maybe if I’d have installed that things would have been smoother. If I ever need it, I’ll post an update…

Leave a Reply

by 슈아이한 | 2008/02/15 22:24 | Bug/Error | 트랙백(80) | 핑백(2) | 덧글(0)

[스태틱컨트롤]Text뒤에 비트맵 그리기- CTLCOLOR_STATIC 이용

result_2007_4_6_12_38_41_703_1.jpg


http://www.devpia.com/MAEUL/Contents/Detail.aspx?BoardID=51&MAEULNO=20&no=7654&page=8



음 예전엔 그냥 비트맵그려주고 그위에 텍스를썼었는데 Static 컨트롤의 CTLCOLOR_STATIC메세지를
이용하여 쉽게할 수있군..

by 슈아이한 | 2008/01/21 12:49 | 트랙백 | 덧글(0)

10년 주기상 상승 사이클 정점은 내년 이후

매일경제 홈 > 뉴스센터 > 헤드라인

경제용어
확대 축소 뉴스센터 > 뉴스종합', 'http://news.mk.co.kr/newsRead.php?year=2007&no=663316', '663316' )" href="">블로그스크랩 프린트 이메일 목록

"10년 주기상 상승 사이클 정점은 내년 이후"

내년 초 강세→2~3분기 조정→하반기 강세

10년 주기로 볼 때 상승 사이클의 정점은 2008년 이후에나 오고, 짝수 해의 특징도 결합해 보면 내년 증시는 연초 강세, 2.4분기와 3.4분기 조정, 하반기 강세로 예상된다는 주장이 나왔다.
한화증권은 4일 증권선물거래소에서 시황간담회를 갖고 이 같이 밝힌 뒤 "지난달 23일 1,745에서 저점을 확인한 코스피 지수는 올 연말 2,020 전후에서 마감된 뒤 내년 초 2,160까지 상승 랠리를 펼칠 것"으로 전망했다.

윤지호 투자정보팀장은 "1900년부터 미국 다우지수의 연간 상승률을 10년 주기로 살펴본 결과, 5년차에 가장 강한 상승 랠리를 펼쳤고, 9~10년차에 고점이 나오는 경향이 높았다"며 "미국증시에서 100여년 간 지속된 10년 주기는 의미가 있다"고 말했다.

그는 "한국증시 역시 IMF라는 특수한 상황이 있었던 1990년대를 제외하고 1970년대, 1980년대, 2000년대를 보면 5~8년차 상승랠리가 연속되는 경향이 높았다"고 설명했다.

이에 따라 8년차인 내년 정점을 고민할 필요가 없으며, 이 기간 중 보이는 주가 조정은 좋은 매수 기회라는 게 윤 팀장의 판단이다.

윤 팀장은 또 "한국증시에서는 홀수해 강세, 짝수해 상대적 약세라는 특징이 나타났다"며 "짝수해의 경우 1.4분기 강세 국면이 나온 뒤 5~8월에 기간 조정이 있었다"고 제시했다.

한화증권에 따르면 코스피지수의 연간수익률은 2000년(-50.92%), 2001년(+37.47%), 2002년(-9.54%), 2003년(+29.19%), 2004년(+10.51%), 2005년(+53.96%), 2006년(+3.99%), 2007년(+32.62%)으로 나타났다.

그는 "1월 효과, 산타 랠리와 같은 계절적 강세 경향에 짝수해의 1.4분기 강세 국면까지 더할 때 지금 주식을 사서 내년 상반기에 매도하는 전략이 우월한 성과를 보일 것으로 전망된다"고 강조했다.

결국, 내년 상반기를 겨냥한 현재 종목 선택이 중요하다고 조언하며 윤팀장은 과거에도 좋았고, 미래에도 좋은 조선주와 과거에는 나빴지만 미래에는 좋은 자동차 업종을 추천했다.

종목으로는 유망 업종 가운데 주가이익비율(PER) 부담이 크지 않은 대우조선해양[042660], 두산중공업[034020], 대한항공[003490], 현대차[005380], 한솔제지[004150], 제일기획[030000], 대우차판매[004550]를 제시했다.

ksyeon@yna.co.kr

(서울=연합뉴스) 곽세연 기자

<저 작 권 자(c)연 합 뉴 스. 무 단 전 재-재 배 포 금 지.>

2007.12.04 11:48:59 입력, 최종수정 2007.12.04 12:28:28

by 슈아이한 | 2007/12/04 13:43 | 트랙백 | 덧글(0)

◀ 이전 페이지 다음 페이지 ▶