[cups.development] compilation error with httpConnect and httpConnectEncrypt
Michael Sweet
msweet at apple.com
Sun Jan 23 20:08:38 PST 2011
You need to link with the CUPS libraries. Use "cups-config --libs" to get the compiler options to use.
On Jan 23, 2011, at 1:44 AM, Patrice wrote:
> Hello All
> I have been trying to compile a simple project using cups API but I keep on getting the same error message. the code is as follow:
>
> #include <stdio.h>
> #include <iostream>
>
> using namespace std;
>
> int main( )
> {
> http_t* http = httpConnectEncrypt("156,145.12.0", 631, HTTP_ENCRYPT_ALWAYS);
>
> return 0;
>
> }
>
> the error message is as follow: undefined reference to httpConnectEncrypt; when i change httpConnectEncrypt to httpConnect i get the same message.
> Is there anything i should prior compilation of the program. please i really need your help.
> _______________________________________________
> cups-dev mailing list
> cups-dev at easysw.com
> http://lists.easysw.com/mailman/listinfo/cups-dev
________________________________________________________________________
Michael Sweet, Senior Printing System Engineer, PWG Chair
More information about the cups-devel
mailing list