DaanDeMeyer / reproc

A cross-platform (C99/C++11) process library
MIT License
552 stars 65 forks source link

Are c++ examples outdated? #35

Closed bangusi closed 4 years ago

bangusi commented 4 years ago

Windows, Visual Studio 2017 I tried to compile run.cpp as is and got lots of errors. e.g. error C2039: 'parent': is not a member of 'reproc::options::<unnamed-type-redirect error C2039: 'deadline': is not a member of 'reproc::options'

DaanDeMeyer commented 4 years ago

Can you share which version of reprocxx you're using? I have a suspicion it might be out-of-date. The examples in the repository apply to the latest released version and there have been breaking changes in the latest releases.

bangusi commented 4 years ago

Ver 10.0.3 installed by vcpkg

DaanDeMeyer commented 4 years ago

The run function was added in v11.0.0. You'll have to update to that release in order to use it (it's already available in vcpkg).