본문 바로가기

프로그래밍/미분류

우분투에서 ChaiScript 샘플 빌드하면서 만난 문제

반응형

compling chaiscript samples on ubuntu



  1. apt-get install eclipse-cdt : if menu is hidden, modify /usr/share/applications/eclipse.desktop Exec=env UBUNTU_MENUPROXY= eclipse
  2. chaiscript .deb download and install : under usr/include  chaiscript folder is created
  3. make a cpp project
  4. project preference 
    1. gcc compile option --std=c++11
    2. gcc linke option --ldl  (-l dl 추가)
  5. if built binary doesn't work. 
    1. #include chaiscript_stdlib.hpp
    2. chaiscript::ChaiScript chai(chaiscript::Std_Lib::library());
    3. this doesn't use precompiled share library dll. compile much longer.


728x90