(Sth wrong about my chinese fonts, use my poor english)
The following is a small part in my code:
struct inheritance inInheritance;
// Execute the client program
if((pidClientIdentifier = spawn("/root/workspace/clienttest/x86/o/clienttest", 0, NULL, &inInheritance, szArguments, NULL)) == -1)
printf("[Server] Failed to launch client\n");
printf("[Server] Client created with PID = %d\n", pidClientIdentifier);
I have already used the IDE to compile the clienttest.c and stored it in the above directory, actually in both command line window and IDE, I also have tested the exuatable “clienttest” and it could work.
but no matter how hard I try, I cant launch it in the servertest and the console always shows the information “fail to lanch clienttest”. Xtang etc experts, kindly explain it for me and give me a help.