Re: [Qt-creator] I want use "xenctrl.h" in qt-creator?

2010-10-08 Thread Stephen Chu
On 10/8/2010 4:35 AM, 张建锋 wrote: > I want use "xenctrl.h"(xen-devel) in QT, > In my program , "#include " > In the .pro file , I add " LIBS += -lxenctrl" , > compiler output undefined reference to 'xc_find_device_number(devicename)'. > if I compile the program use gcc test.c -o test -lxenctrl ,the

Re: [Qt-creator] I want use "xenctrl.h" in qt-creator?

2010-10-08 Thread 张建锋
Yes, I did. *the file main.cpp:* / #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); xc_interface_open(); return a.exec(); } / *the .pro file:* /

Re: [Qt-creator] I want use "xenctrl.h" in qt-creator?

2010-10-08 Thread Alex T.
Did you regenerate Makefile? On 8 October 2010 11:35, 张建锋 wrote: > I want use "xenctrl.h"(xen-devel) in QT, > > In my program , "#include " > In the .pro file , I add " LIBS += -lxenctrl" , > > compiler output undefined reference to 'xc_find_device_number(devicename)'. > > if I compile the progr

[Qt-creator] I want use "xenctrl.h" in qt-creator?

2010-10-08 Thread 张建锋
I want use "xenctrl.h"(xen-devel) in QT, In my program , "#include " In the .pro file , I add " LIBS += -lxenctrl" , compiler output undefined reference to 'xc_find_device_number(devicename)'. if I compile the program use gcc test.c -o test -lxenctrl ,the compile passed. how can I do ?