sheredom / subprocess.h

🐜 single header process launching solution for C and C++
The Unlicense
1.12k stars 97 forks source link

Lib just dont work #9

Closed TheCherry closed 4 years ago

TheCherry commented 4 years ago

Hallo, I was very happy to find this lib. But it just doesn't work.

I tried it with C and C++ in MVS 2017. At the example

    const char *command_line[] = { "echo", "\"Hello, world!\"", NULL };
    struct process_s process;
    int result = process_create(command_line, 0, &process);
    if (0 != result) {
        // an error occurred!
    }

I always get the result -1 If I start nodejs instead of echo, a result of 0 comes but the process does not start.

sheredom commented 4 years ago

Is echo on the path? How do you know that nodes does not start?

sheredom commented 4 years ago

Closing this as no-response to my queries.