ReilenBlaeyze
1st March 2006, 19:26
I'm trying to use a KHTML View to show some html stuff in my app, but when try to compile it I get the following linker error...
/home/shadow/project/kreator/src/genericcharmwidget.cpp:60: undefined reference to `KHTMLPart::KHTMLPart(QWidget*, char const*, QObject*, char const*, KHTMLPart::GUIProfile)'
/home/shadow/project/kreator/src/genericcharmwidget.cpp:61: undefined reference to `KHTMLView::KHTMLView(KHTMLPart*, QWidget*, char const*)'
I've included the proper headers for both KTMLView and KHTMLPart and get no compiler errors.
In my setupUI() function (called in constructor) I have:
charmViewPart=new KHTMLPart(this);
charmView=new KHTMLView(charmViewPart,this);
/home/shadow/project/kreator/src/genericcharmwidget.cpp:60: undefined reference to `KHTMLPart::KHTMLPart(QWidget*, char const*, QObject*, char const*, KHTMLPart::GUIProfile)'
/home/shadow/project/kreator/src/genericcharmwidget.cpp:61: undefined reference to `KHTMLView::KHTMLView(KHTMLPart*, QWidget*, char const*)'
I've included the proper headers for both KTMLView and KHTMLPart and get no compiler errors.
In my setupUI() function (called in constructor) I have:
charmViewPart=new KHTMLPart(this);
charmView=new KHTMLView(charmViewPart,this);