Why does my compiler not accept fork(), despite my inclusion of ?

前端 未结 4 1384
隐瞒了意图╮
隐瞒了意图╮ 2020-12-01 16:48

Here\'s my code (created just to test fork()):

#include   
#include 
#include 
#include 
#inclu         


        
4条回答
  •  天涯浪人
    2020-12-01 17:03

    I think that you have to do the following instead:

    pid_t pid = fork();
    

    To learn more about Linux API, go to this online manual page, or even go into your terminal right now and type,

    man fork
    

    Good luck!

提交回复
热议问题