QNX SDP 7.1.0 (QCC 8.3.0) -“ioctl_socket”未在此范围内声明

问题描述 投票:0回答:1

我们有一个使用

ioctl_socket()
函数的模块,我已将
#include <sys/ioctl.h>
包含在
.cpp
中,但仍然抛出以下错误:

'ioctl_socket' was not declared in this scope
             if (ioctl_socket( sockFd, SIOCSETVLAN, &ifr) == -1)
                 ^~~~~~~~~~~~

关于如何修复编译错误有什么建议吗?预先感谢。

c++ qnx
1个回答
0
投票

可能已弃用?在 qnx710 上使用 ioctl?

© www.soinside.com 2019 - 2024. All rights reserved.