Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there cross platform library to call/create process in c++ [closed]

Is there any cross platform library to create process's (using createProcess win32 api in windows for example). for linux/windows/mac?

like image 257
user63898 Avatar asked May 16 '11 12:05

user63898


4 Answers

  1. Boost.Process will do that
  2. as will PoCo (Processes namespace, in Foundation)

None of these are intrusive libraries, and none of these imply UI frameworks. Both will support static linkage without major size overhead.

like image 75
sehe Avatar answered Nov 10 '22 12:11

sehe


You could use Qt which implements many OS utilities in a platform-independent way, eg. processes, threads, networking, GUI of course,....

like image 39
Christian Rau Avatar answered Nov 10 '22 13:11

Christian Rau


Have a look at https://github.com/eidheim/tiny-process-library, a modern C++(11) platform independent process library without external dependencies.

like image 32
Ole Avatar answered Nov 10 '22 12:11

Ole


I was able to run notepad using: std::system("notepad.exe"); I beleive in linux it also should work.

like image 44
Danil Avatar answered Nov 10 '22 12:11

Danil