运行时出现段错误
GuoAdc::GuoAdc(QWidget *parent) :QWidget(parent),
ui(new Ui::GuoAdc)
{
adc_fd=open("/dev/adc",0);
if(adc_fd<0)
{
perror("open adc device");
}
ui->setupUi(this);
notifier=new QSocketNotifier(adc_fd,QSocketNotifier::Read,this);
connect(notifier,SIGNAL(activated(int)),this,SLOT(readadc_value()));
}这样定义出现段错误了,各位大神帮帮忙