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

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -