Hi, in general, it's very difficult to tell what the problem is if you do not provide compilable source code.
The errors you are getting look unrelated to GSL: Am 17. Januar 2012 11:46 schrieb Fu Changhong >>gcc -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gsl` >>-c particles.c -o particles.o >>particles.c: In function ‘resample’: >>particles.c:157:3: warning: passing argument 4 of ‘qsort’ from incompatible >>pointer type [enabled by default] >>/usr/include/stdlib.h:761:13: note: expected ‘__compar_fn_t’ but argument is >>of type ‘int (*)(void *, void *)’ Check your use of the 'qsort' function in that line. >>gcc > -O3 -I../include `pkg-config --cflags opencv` `pkg-config --cflags gsl` > `pkg-config --libs opencv` `pkg-config --libs gsl` ../src/observation.o > ../src/utils.o ../src/observe.c -o observe >>/tmp/cctSW8s8.o: In function `arg_parse': >>observe.c:(.text+0x160): undefined reference to `cvLoadImage' >>observe.c:(.text+0x1d4): undefined reference to `cvLoadImage' The cannnot find the library which contains the cv* symbols. >>observation.c:(.text+0x500): undefined reference to `sqrt' >>observation.c:(.text+0x92f): undefined reference to `exp' >>observation.c:(.text+0x956): undefined reference to `sqrt' You can probably fix these errors by adding '-lm' to the arguments passed to the linker. Note that this mailing list is actually for bugs reports concerning GSL. Best regards, Frank _______________________________________________ Bug-gsl mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-gsl
