unix - How to use <unistd.h> library in visual stdio? -


i faced os experiment develop unix shell. in order create new process, have use fork() function. however, fork() function defined in <unistd.h>, , can not use in microsoft visual studio. there way solve this?

if using visual studio, means targetting windows...? fork() not part of windows api, must find way create new process:

  • directly use windows api: createprocess
  • use cross-platform library (that callcreateprocess on windows , fork on linux. have @ boost.process instance (but there's others, qt's qprocess

i personnaly recommand second approach (i use boost.process).


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -