You are not logged in.
Hi,
I wasn't sure this was the right board or even the right forum, I'm sorry if it isn't.
Context:
I have got a Canon Pixma MX455 which I'm trying to setup with arch. The Cannon support site offers a deb, rpm or the source. After downloading the source and getting part way through making the apropriate things. I get an error message from gcc.
The errors are always similar to one of these two variatons:
bjcups.c:702:11: error: dereferencing pointer to incomplete type
pRequest->request.op.operation_id = CUPS_GET_PRINTERS;
^bjcups.c:728:28: error: dereferencing pointer to incomplete type
if (strcmp(pAttribute->name, "printer-name") == 0 && pAttribute->value_tag == IPP_TAG_NAME) {This is pretty much where I got stuck I have looked aroud a bit. I have a fairly basic understanding of C. From searching I have found that the error is probably because when pRequest and pAttribute are decrlared the ipp_t and ipp_attribute_t structures are no where in the file.
bjcups.c:
ipp_t *pRequest, // Pointer to CUPS IPP request.
*pResponse; // Pointer to CUPS IPP response.
ipp_attribute_t *pAttribute; // Pointer to CUPS attributes.The file /usr/include/cups/ipp.h does have the structures in (I think the code is correct).
ipp.h:
typedef struct _ipp_s ipp_t; /**** IPP request/response data ****/
typedef struct _ipp_attribute_s ipp_attribute_t;bjcups.c has:
#include <cups/cups.h>cups.h has:
# include "ipp.h"So my question (of course) is: why am I getting errors?
Thank you very much for any help,
--nontlikeuname
Last edited by nontlikeuname (2014-12-30 19:46:05)
Offline
I do not have your printer, but a casual look through the AUR coughed up:
aur/canon-pixma-mx450-complete 3.90-1 (0)
Complete stand alone driver set (printing and scanning) for Canon Pixma
MX450 seriesIs that not the driver you need?
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way
Offline
Thank you that has worked.
Last edited by nontlikeuname (2014-01-20 18:28:35)
Offline