View Single Post
Old 08-17-2009, 10:42 PM   #121
pwarren
Connoisseur
pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.pwarren can program the VCR without an owner's manual.
 
Posts: 95
Karma: 186186
Join Date: May 2009
Location: Canberra, Australia
Device: Irex Iliad (Dead), EcoReader (Smashed screen), Kobo Touch
Finally had a go at getting my FBReader idea to work, but I'm stuck on some c/c++ incompatibility. xEPDmgr is c, FBReader is C++.

I've done:

Code:
extern "C" {
#include "xepdmgrclient.h"
}
which produces on compile:

Code:
ZLGtkViewWidget.cpp: In function `void doPaint(GtkWidget*, GdkEventExpose*, ZLGtkViewWidget*)':
ZLGtkViewWidget.cpp:114: error: invalid conversion from `int' to `sEpd*'
ZLGtkViewWidget.cpp:114: error:   initializing argument 1 of `int EpdRefreshAuto(sEpd*, int)'
ZLGtkViewWidget.cpp:121: error: invalid conversion from `int' to `sEpd*'
ZLGtkViewWidget.cpp:121: error:   initializing argument 1 of `int EpdCancel(sEpd*)'
ZLGtkViewWidget.cpp:122: error: invalid conversion from `int' to `sEpd*'
ZLGtkViewWidget.cpp:122: error:   initializing argument 1 of `int EpdRefreshAuto(sEpd*, int)'
ZLGtkViewWidget.cpp: At global scope:
ZLGtkViewWidget.cpp:320: warning: unused parameter 'track'
make[2]: *** [ZLGtkViewWidget.o] Error 1
Very similar errors are produced when trying to compile xepdmgrclient.c to an object file with g++.

I'm a bit out of my depth here with c/c++ compatibility, anyone got a quick fix?
pwarren is offline   Reply With Quote