のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

make error

345 #if HB_VERSION_ATLEAST(1,0,3)
346   hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
347 #endif

gcc - what does the compiler error "missing binary operator before token" mean? - Stack Overflow

make[4]: Entering directory `/home/u01/layout/oss/pango-1.38.1/pango'
  CC       pangofc-shape.lo
pangofc-shape.c: In function ‘_pango_fc_shape’:
pangofc-shape.c:349:3: warning: implicit declaration of function ‘hb_buffer_set_cluster_level’ [-Wimplicit-function-declaration]
   hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
   ^
pangofc-shape.c:349:43: error: ‘HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS’ undeclared (first use in this function)
   hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
                                           ^
pangofc-shape.c:349:43: note: each undeclared identifier is reported only once for each function it appears in
//#if HB_VERSION_ATLEAST(1,0,3)
#if ((major)*10000+(minor)*100+(micro) <= \
         HB_VERSION_MAJOR*10000+HB_VERSION_MINOR*100+HB_VERSION_MICRO)

  hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
#endif
src/hb-buffer.h
typedef enum {
  HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES    = 0,
  HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS   = 1,
  HB_BUFFER_CLUSTER_LEVEL_CHARACTERS            = 2,
  HB_BUFFER_CLUSTER_LEVEL_DEFAULT = HB_BUFFER_CLUSTER_LEVEL_MONOTONE_GRAPHEMES
} hb_buffer_cluster_level_t;

コメントアウトすると、とりあえずコンパイルエラーがきえる。

//#if HB_VERSION_ATLEAST(1,0,3)
//  hb_buffer_set_cluster_level (hb_buffer, HB_BUFFER_CLUSTER_LEVEL_MONOTONE_CHARACTERS);
//#endif