pbc icon indicating copy to clipboard operation
pbc copied to clipboard

error building lua binding

Open davidbirdsong opened this issue 10 years ago • 1 comments

[david@host1 lua{master}]$ C_INCLUDE_PATH=/usr/include/lua5.1     make  
gcc -O2 -Wall --shared -o protobuf.dll -I../.. -I/usr/local/include -L/usr/local/bin -L../../build pbc-lua.c -lpbc -llua52
pbc-lua.c: In function ‘_env_enum_id’:
pbc-lua.c:80:38: warning: implicit declaration of function ‘_pbcM_sp_query’ [-Wimplicit-function-declaration]
     struct _enum *enum_map = (struct _enum *)_pbcM_sp_query(env->enums, enum_type);
                                      ^
pbc-lua.c:80:64: error: dereferencing pointer to incomplete type
     struct _enum *enum_map = (struct _enum *)_pbcM_sp_query(env->enums, enum_type);
                                                                ^
pbc-lua.c:86:5: warning: implicit declaration of function ‘_pbcM_si_query’ [-Wimplicit-function-declaration]
     int err = _pbcM_si_query(enum_map->name, enum_name, &enum_id);
     ^
pbc-lua.c:86:38: error: dereferencing pointer to incomplete type
     int err = _pbcM_si_query(enum_map->name, enum_name, &enum_id);
                                      ^
pbc-lua.c: In function ‘_pattern_pack’:
pbc-lua.c:809:14: warning: unused variable ‘b’ [-Wunused-variable]
  luaL_Buffer b;
              ^
make: *** [all] Error 1

Any pointers?

davidbirdsong avatar May 19 '15 03:05 davidbirdsong

Sorry, I haven't check the PR https://github.com/cloudwu/pbc/pull/52 before merged. Now it fixed.

cloudwu avatar May 19 '15 04:05 cloudwu