Divine Power

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록

boost 3

boost python, 좀 더 복잡한 자료구조를 다뤄보자?

StrPairs 라는 클래스다.#pragma once#ifndef _STRPAIRS_H_#define _STRPAIRS_H_ #include "util.h" class StrPairs{ public: StrPairs(); virtual ~StrPairs(); public: int get_str_index( const char *str ); str_pair &at( const int i ); str_pair &operator[]( const int i ); void add_pair( const char *name, const char *value ); void print(); void read_from_file( const char *fname ); void clear(); public: str_pair ..

Unix 2014.03.10

Boost python 3 예제

boost 1.55에다 python 3.3 환경에서 해봤다. test.cpp: #include char const* greet() { return "hello, world"; } BOOST_PYTHON_MODULE(hello_ext) { using namespace boost::python; def("greet", greet); } 컴파일:$ g++ -shared -fPIC `python3-config --includes` `python3-config --libs` -lboost_python3 test.cpp -o hello_ext.sohello_ext.so 파일이 생길 것이다. hello_ext.so 가 있는 곳에서 아래와 같이 해보자: 사용:forcecore@forcecore:/dev/shm$ pyt..

Unix 2014.03.10

Boost를 위한 CMakeLists.txt 짜기

cmake --help-module FindBoost 를 보면 여러가지 설명을 볼 수 있다. http://stackoverflow.com/questions/1065011/why-is-this-boost-header-file-not-included 이 글도 댓글에 친절한 설명이 있다.

Unix 2011.08.14
이전
1
다음
더보기
프로필사진

Divine Power

언리미티드 빠와!

  • 분류 전체보기 (1156)
    • thoughts (33)
    • 이것저것 (51)
    • LaTeX (67)
    • cygwin (7)
    • Mac (2)
    • Unix (165)
      • Arch Linux (62)
      • openSUSE (14)
      • CentOS (27)
      • Fedora Core 4 (101)
      • *Nix계통 팁 (65)
      • Gentoo (14)
      • Ubuntu (113)
      • Solaris10 (98)
      • coLinux (13)
      • 유닉스와 디렉토리 (34)
      • Open Solaris (16)
      • Debian (12)
    • 윈도우 (127)
      • 윈도우 '잘'쓰기 (77)
      • Windows Server (3)
      • 비스타 (6)
      • MFC (2)
    • Data science (2)
    • 서버관리 삽질 기록 (23)
    • 링크 (13)
    • 하드웨어 (11)
    • parkoz tips (7)
    • collect (67)
    • 병맛단편 (5)

Tag

tikz, Gentoo, 팁, Python, Scrap, Windows, FedoraCore, 하드웨어, arch linux, archlinux, ubuntu, Linux, VIM, 설치, opensuse, 리눅스, 우분투, pidgin-nateon, Solaris, latex,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

  • SOHEE 서버 관계도
  • 첨부파일에 대해

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2026/01   »
일 월 화 수 목 금 토
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31

방문자수Total

  • Today :
  • Yesterday :

Copyright © AXZ Corp. All rights reserved.

티스토리툴바