2017-05-23 2 views
0

私が今持っている:どのように正しくstrモジュールをoasis configに追加しますか?何

_oasisファイル:

OASISFormat: 0.4 
Name:  Count Lines 
Version:  0.0.1 
Synopsis: Counts the number of lines in the project 
Authors:  Bogdan Nechyporenko 
License:  LGPL-2.1 with OCaml linking exception 
Executable "count-lines" 
    Path:  src 
    BuildTools: ocamlbuild 
    BuildDepends: str 
    MainIs:  main.ml 

のsrc/main.ml:

open Str ;; 

let endswith s1 s2 = 
    let re = Str.regexp (Str.quote s2^"$") 
    in 
    try ignore (Str.search_forward re s1 0); true 
    with Not_found -> false 

私はそれを構築するためのコマンドを実行している:

ocaml setup.ml -build 

残りは、ocaml -setupによって生成されたファイルです。 enter image description here

そして、私は次のエラーが表示建物だとき: enter image description here

答えて

1

答えに興味を持って誰かが、あなた自身の_oasisファイルを変更した後、あなたが変更をピックアップする「オアシス・セットアップ」を実行する必要がある場合。

Drup in IRC#ocaml chatに感謝します。

関連する問題