在c ++ for create_process哪个头文件需要? [英] in a c++ for create_process which header file require?

查看:181
本文介绍了在c ++ for create_process哪个头文件需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在用于create_process的c ++中哪个头文件需要?

in a c++ for create_process which header file require?

推荐答案

这取决于使用的函数。使用Linux类型man function_name打开函数的手册页,其中列出了所需的头文件。



使用 fork exec 头文件是 unistd.h posix_spawn 它将是 spawn.h
This depends on the used functions. With Linux type "man function_name" to open the function's manual page which states the required header files on top.

With fork and exec the header file would be unistd.h and with posix_spawn it would be spawn.h.


这篇关于在c ++ for create_process哪个头文件需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆