Showing posts with label boost library. Show all posts
Showing posts with label boost library. Show all posts
2008/09/17
Boost Library 쉽게 설치하기
2008/09/17 - [Dev Story/Tips] - VC++ 2005 에 boost library 32bit & 64bit 설치하기
위 글을 포스팅하면서 찾은 정보로 boost library 를 쉽게 설치할 수 있도록 구성한 설치 프로그램이 있다.
BoostPro 라는 이름의 이 프로그램은 작은 설치 파일 형태로 배포되어 인터넷을 통하여 라이브러리를 다운받아 설치되도록 지원하는 프로그램이다.
이미 컴파일된 파일을 다운로드하여 설치하기 때문에 몇가지 제약을 갖고있다.
현재 1.35버전이 가장 최근 버전이며 컴파일러 선택을 Visual C++ 2003, 2005, 2008 만 선택할 수 있으며 다른 부가적인 옵션을 선택할 수 없다(32bit 만 지원함.). 그래서 설치가 간단하다.
먼저 프로그램을 실행하고 다운로드 받을 위치를 선택한다. 설치 경로와 컴파일러 그리고 Variants를 설정을 해 주면 된다.
아래 슬라이드는 설치되는 과정을 갈무리한 화면이다.
설치를 완료하고 Visual C++ IDE 의 도구->옵션 메뉴에서 포함경로와 라이브러리 경로를 지정해 주면 된다.
BoostPro webpage
Original Post : http://neodreamer-dev.tistory.com/158
Labels:
boost
,
boost library
,
BoostPro
,
BoostPro Free
,
TistoryOldPost
,
Visual C++
C++ Builder 2009에 포함된 Boost Library 버전 확인
C++ 표준 라이브러리로 등록을 코앞에 둔 boost library 가 C++ Builder 2009 에는 기본으로 포함되어 있다.
이 라이브러리의 버전을 확인해 보았다.
설치를 마치고 간단하게 설치 경로(C:\Program Files\CodeGear\RAD Studio\6.0\include\boost_1_35)를 보면 확인할 수 있지만 소스 코드를 이용하여 확인을 해 보았다.
#include <vcl.h>
#pragma hdrstop
#include <tchar.h>
//----------------------------------------------------------------------
#include <boost/version.hpp>
#include <iostream>
#include <string>
#pragma argsused
int _tmain(int argc, _TCHAR* argv[])
{
int minor = BOOST_VERSION / 100 % 1000;
int major = BOOST_VERSION / 10000;
std::cout << "Boost library version : " << BOOST_LIB_VERSION << "
\n";
std::cout << "Boost major version : " << major << "
\n";
std::cout << "Boost minor version : " << minor << "
\n";
return 0;
}
//----------------------------------------------------------------------C++ Builder 2009에 포함된 Boost 버전
Original Post : http://neodreamer-dev.tistory.com/157
VC++ 2005 에 boost library 32bit & 64bit 설치하기
x64 Cross Tools 명령 포롬프드 단축키
#include "stdafx.h"
#include <boost/regex.hpp>
#include <iostream>
#include <string>
int _tmain(int argc, _TCHAR* argv[])
{
std::string line;
boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" );
while (std::cin)
{
std::getline(std::cin, line);
boost::smatch matches;
if (boost::regex_match(line, matches, pat))
std::cout << matches[2] << std::endl;
}
return 0;
}
Boost.Regex 테스트 결과 화면
Subscribe to:
Posts
(
Atom
)