LoginSignup
5

More than 5 years have passed since last update.

posted at

updated at

SimStringをLinuxで動かす際の注意点

類似文字検索のためにSimStringをLinux上で動かそうとした際に以下のような文が含まれるエラーがでてしまった場合の対処方法のメモ.

g++ -DHAVE_CONFIG_H -I. -I.. -I../include -03 -ffast-math -03 -ffast-math -MT main.o -M -MF .deps/main.Tpo -c -o main.o main.cpp
In file included from ../include/simstring/memory_mapped_file.h:62:0,
          from ../include/simstring/simstring.h:52
          from main.cpp:43 

対処方法
1.次のファイルを適当なエディタで編集.
simstring/include/simstring/memory_mapped_file_prosix.h

2.以下の文をmemory_mapped_file_profix.hに追加
#include <unistd.h>

あとはこちらのページの通り、

./configure
make
make install

とすることで、frontend/simstring に実行ファイルが作られます.

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
5