Hi,
I'm usually a Windows Programmer, but attempting to add Linux CUPS support to my Printer Module is causing me major problems before I've even written the glue code!
I started on this project by checking that my libraries were all correct by using the following sample program:
I compiled it using GCC on the command line as follows and it works fine: gcc -o cupstest `cups-config --cflags` cupstest.c `cups-config --libs` Satisfied that my install was correct; I turned to the required libraries. The GCC command line takes input from the output of "cups-config" in two calls. The first call doesn't return anything on my system, but the second returns a list of libraries and compiler options:
$ cups-config --cflags
$ cups-config --libs
-lcups -Wl,-Bsymbolic-functions -Wl,-z,relro -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -lgcrypt -lz -lpthread -lm -lcrypt -lz
Knowing which libraries are linked; I started with Blitzmax and this is where my Linux knowledge is lacking severely:
Import "-lcups" I get this error:
Linking:Linux-list-printers.debug.mt
/usr/bin/ld: cannot find -lcups
collect2: error: ld returned 1 exit status Any suggestions!
|