[Solved][Moved] Can not use ioctl in Qt 4
-
Hi all. Trying to call ioctl function in Qt, Receive the error message ioctl not declared in this scope. Searched for ioctl in include directory - nothing, as well as iostl.h. Any advises. Thanks
-
The task is to read/write data to tape, to provide some manimulation with tape such as write TM, go over TM, etc. In CGG i used ioctl function.
-
Do you include the right headers?
-
Yes, ioctl.h could not be found. It is fcntl.h but as far as i understand it is for read / write fuctions
-
I moved this to the C++ Gurus forum, as it has absolutely nothing to do with Qt. This is a pure C/C++ problem.
try as the man pages ("Linux":http://linux.die.net/man/2/ioctl, "FreeBSD":http://www.freebsd.org/cgi/man.cgi?query=ioctl&sektion=2) suggest:
@
#include <sys/ioctl.h>
@ -
Thank you. It's ok now.