GCC ICU 57 static linking -
i trying link icu 57 binary file. not work thought (i think @ least) linking static lib files. here blunt example:
gcc -static /usr/lib/libicui18n.a /usr/lib/libicuuc.a /usr/lib/libicudata.a /usr/lib/libicule.a /usr/lib/libiculx.a /usr/lib/libicutu.a /usr/lib/libicuuc.a /usr/lib/libicuio.a obj/ex.o obj/msg.o -o bin/ex
this error message get:
src/msg.c:5: undefined reference `u_fopen_57' src/msg.c:9: undefined reference `u_fgetfile_57' src/msg.c:10: undefined reference `u_fgetfile_57' src/msg.c:11: undefined reference `u_frewind_57' src/msg.c:18: undefined reference `u_fgetc_57' src/msg.c:17: undefined reference `u_feof_57' src/msg.c:25: undefined reference `u_fclose_57'
linking dynamic libs works fine though.
if can, i'd recommend using pkg-config
recommended here,
specifically pkg-config --static …
explained here
Comments
Post a Comment