Mailinglist Archive: opensuse (3767 mails)

< Previous Next >
Re: [SLE] epson ink level - SuSE-10 oss
  • From: Paul Cartwright <paul_tbot@xxxxxxxxxxxxxxx>
  • Date: Thu, 2 Feb 2006 08:03:26 -0500
  • Message-id: <200602020803.26677.paul_tbot@xxxxxxxxxxxxxxx>
On Tue January 31 2006 6:02 pm, Kai Ponte wrote:
> Thanks for the tip on these! This is cool.
>
> Aso for kInk, have you installed libinklevel?

I added libinklevel.h and am trying to compile kink. I get this error:

kink.cpp: In member function ‘void KInk::add_device_to_list(int, int,
unsigned char*)’:
kink.cpp:160: error: invalid conversion from ‘unsigned char*’ to ‘const
char*’
make[2]: *** [kink.o] Error 1


here is line 160:
cmbDevices->insertItem(QString::fromAscii((const char
*)model,strlen(model)) + " on " + (type==PARPORT ? "/dev/lp" :
"/dev/usb/lp0") + QString::number(port));

( I changed lp to lp0, my epson is /dev/usb/lp0)

I'm not a programmer, so I have no clue what's wrong, any ideas?

--
Paul Cartwright
Registered Linux user # 367800

< Previous Next >