Yes, I did.
*the file main.cpp:*
/************************************************
#include <QtCore/QCoreApplication>
#include <xenctrl.h>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
xc_interface_open();
return a.exec();
}
************************************************/
*the .pro file:*
/***********************************************
QT -= gui
TARGET = qtctest
CONFIG += console
CONFIG -= app_bundle
TEMPLATE = app
SOURCES += main.cpp
LIBS += -lxenctrl
***********************************************/
*the compiler output:*
undefined reference to 'xc_interface_open()'
collect2:ld return 1
*How can I do ?*
Thanks very much~
2010/10/8 Alex T. <[email protected]>
> Did you regenerate Makefile?
>
> On 8 October 2010 11:35, 张建锋 <[email protected]> wrote:
>
>> I want use "xenctrl.h"(xen-devel) in QT,
>>
>> In my program , "#include <xenctrl.h>"
>> 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 ?
>>
>> _______________________________________________
>> Qt-creator mailing list
>> [email protected]
>> http://lists.trolltech.com/mailman/listinfo/qt-creator
>>
>>
>
> _______________________________________________
> Qt-creator mailing list
> [email protected]
> http://lists.trolltech.com/mailman/listinfo/qt-creator
>
>
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator