int car::com_init()
{
struct termios opt;
gps_fd=open("/dev/ttySAC1",O_RDONLY);
}
编译报错:
car.cpp: In member function 'int car::com_init()':
car.cpp:33: error: no matching function for call to 'car::open(const char [13], int)'
../QT/QtE-4.5.3/include/QtGui/qdialog.h:99: note: candidates are: void QDialog::open()
我在程序里加了头文件啦
#include <termios.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
不知道这错误怎么回事???