[Solved][Moved] Can not use ioctl in Qt 4
-
wrote on 7 Dec 2011, 03:54 last edited by
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
-
wrote on 7 Dec 2011, 04:20 last edited by
What has that to do with Qt exactly? Could you double check your toolchain?
-
wrote on 7 Dec 2011, 04:26 last edited by
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.
-
wrote on 7 Dec 2011, 10:52 last edited by
Do you include the right headers?
-
wrote on 7 Dec 2011, 11:07 last edited by
Yes, ioctl.h could not be found. It is fcntl.h but as far as i understand it is for read / write fuctions
-
wrote on 7 Dec 2011, 11:53 last edited by
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>
@ -
wrote on 8 Dec 2011, 09:27 last edited by
Thank you. It's ok now.
1/7