c - Undefined reference using SLRE lib -


i using slre (http://slre.sourceforge.net/) doing regex checking in c program. including headerfile , following:

void checkregex() {     struct slre slre;     struct cap captures[4+1];      if(!slre_compile(&slre, "regularexpression") {         printf("error");     } } 

i doing compiling command: gcc example1.c -o test.cgi -l. -lconfig , error: example1.c:(.text+0x1af3): undefined reference 'slre_compile'

any ideas doing wrong?

i looked @ library , consists of slre.c , slre.h compile like

gcc slre.c -o slre.o -c gcc example1.c slre.o -o test.cgi -l -lconfig 

Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -