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
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:*
/
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
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 ?