ftok info: No such file or directory

简介: ftok info: No such file or directory

共享内存时使用到ftok函数

ftok ("/app", 'i')

问题描述

报错

ftok info: No such file or directory


原因分析:

在当前目录下已近创建了app文件但依旧报错

解决方案:

在根文件目录下创建id文件app

注意:
当前目录下路径指定要加上“.”
ftok (“./app”, ‘i’)才可以
“./”才是当前路径,“/“根目录路径

目录
打赏
0
0
0
0
4
分享
相关文章
mkdir: cannot create directory `**': No such file or directory
在mkdir时报错的解决方案,在网上找了很多文章都没有说清楚原因。
510 0
|
9月前
|
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
adb: error: cannot create file/directory ‘d:/1.png‘: No such file or directory
166 0
|
9月前
|
cannot open shared object file: No such file or directory
cannot open shared object file: No such file or directory
104 0
ERROR: file or directory not found: xx.py
​ 1、问题出现原因 在vscode中已导入pytest框架,做自动化demo小测试,运行Python文件一直出现如题错误,截图如下: ERROR: file or directory not found: xx.py  2、解决办法 1)直接把该文件移到当前主目录下,放在PYTHON-STUDY下 2)VSCode中右键tuopan.py文件,选择[在集成终端中打开],或者通过CD命令进入到tuopan.py文件所在目录 然后输入以下命令即可: 注:上述命令不是换行,在d:/前有空格 ,第一行信息为python所在安装路径,空格后的换行为运行的python文件的所在路径  
209 0
InvalidJobConfException: Output directory not set
InvalidJobConfException: Output directory not set
77 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
221 0
The file is in the program because: Imported via xxx Root file specified for compilation Vetur(1261)
完美解决common_define.h: No such file or directory
完美解决common_define.h: No such file or directory
265 0
完美解决common_define.h: No such file or directory
objdump: ‘1443.14.0)‘: No such file or directory
objdump: ‘1443.14.0)‘: No such file or directory
120 0
autoreconf: failed to run autopoint: No such file or directory
autoreconf: failed to run autopoint: No such file or directory
235 0
error: ac_nonexistent.h: No such file or directory
error: ac_nonexistent.h: No such file or directory
623 0
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等