Skip to content

Commit

Permalink
[logalizer][fix] add pcre lib to plotprofile, weird...
Browse files Browse the repository at this point in the history
Very weird stuff: works here on several Ubuntu 12.04 machines without explictly adding -lpcre
For Pranay it only works with explicitly adding it gcc ... --verbose outputs _exactly_ the same stuff as on my machine, but he gets:
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libglibivy.a(ivybind.o):function IvyBindingCompile: error: undefined reference to 'pcre_compile'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libglibivy.a(ivybind.o):function IvyBindingCompile: error: undefined reference to 'pcre_study'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libglibivy.a(ivybind.o):function IvyBindingCompile: error: undefined reference to 'pcre_fullinfo'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libglibivy.a(ivybind.o):function IvyBindingFree: error: undefined reference to 'pcre_free'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libglibivy.a(ivybind.o):function IvyBindingFree: error: undefined reference to 'pcre_free'
/usr/lib/gcc/x86_64-linux-gnu/4.6/../../../../lib/libglibivy.a(ivybind.o):function IvyBindingExec: error: undefined reference to 'pcre_exec'
collect2: ld returned 1 exit status
  • Loading branch information
flixr committed Apr 4, 2013
1 parent 580cd4d commit 563ce35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sw/logalizer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ disp3d: disp3d.c

plotprofile: plotprofile.c
@echo CC $@
$(Q)$(CC) $(IVY_C_LIBRARYS) $(IVY_C_INCLUDES) -g -O2 -Wall `pkg-config glib-2.0 --cflags` -o $@ $^ `pkg-config glib-2.0 --libs` -lglibivy
$(Q)$(CC) $(IVY_C_LIBRARYS) $(IVY_C_INCLUDES) -g -O2 -Wall `pkg-config glib-2.0 --cflags` -o $@ $^ `pkg-config glib-2.0 --libs` -lglibivy -lpcre

test1: test1.c
@echo CC $@
Expand Down

0 comments on commit 563ce35

Please sign in to comment.