What is wrong with the program

Posted by Naveen on Stack Overflow See other posts from Stack Overflow or by Naveen
Published on 2012-03-19T09:56:50Z Indexed on 2012/03/19 10:04 UTC
Read the original article Hit count: 257

Filed under:

I am getting error for below code:

#include "parent_child.h"
#include "child_proces.h"

int main() {

    childprocess::childprocess(){}
    childprocess::~childprocess(){}
     /* parentchild *cp = NULL;
        act.sa_sigaction = cp->SignalHandlerCallback;
        act.sa_flags = SA_SIGINFO;
        sigaction(SIGKILL, &act, NULL);
    }*/
    printf("Child process\n");

    return 0;
}

ERROR: child_proces.cpp: In function âint main()â: child_proces.cpp:11: error: expected ;' before â{â token child_proces.cpp:12: error: no matching function for call to âchildprocess::~childprocess()â child_proces.h:9: note: candidates are: childprocess::~childprocess() child_proces.cpp:12: error: expected;' before â{â token

© Stack Overflow or respective owner

Related posts about c++