led驱动编译通过了,生成了led.ko文件,然后我想用QTCreator编写个程序测试驱动,
int fd;
fd=open("/dev/led",0);
一编译就报错了,
/home/peter/leds/dialog.cpp:9: error: no matching function for call to `Dialog::open(const char[9], int)'
请问是不是我哪里设置有问题?
包含得头文件
#include <QDialog>
#include <QCheckBox>
#include <QDebug>
#include "stdio.h"
#include "stdlib.h"
#include "unistd.h"
#include "sys/ioctl.h"
#include "fcntl.h"