I have a class in C ++ that calls fork () and then wait () s to execute a child process, but I get a compiler error when I try to do this.
Here is the code:
#include <iostream>
And I get this compiler error:
connection.cpp: In member function 'int Connection::Send(std::string)': connection.cpp:64: error: no matching function for call to 'wait::wait(int*)' /usr/include/bits/waitstatus.h:68: note: candidates are: wait::wait() /usr/include/bits/waitstatus.h:68: note: wait::wait(const wait&)
source share