Hello,
I have a C program that builds and runs fine on my Fedora 11 box. This program uses popen as follows:
FILE *pipe = popen("perl - ", "w");
if(pipe) {
int i = 0;
// Send a Perl script to the STDIN of 'pipe'.
for( ; i< sizeof(perlScript) / sizeof(perlScript[0]); ++i) {
fprintf(pipe, "%c", perlScript[i]);
}
pclose(pipe);
}
I would like to know if MinGW can help me:
1. cross-compile the above C program (on my Fedora 11 for the Windows platform),
2. without having to replace the above call to popen by less than ideal
Windows counterparts like _popen (which pops up an ugly CMD console window!),
or CreatePipe, or CreateNamedPipe, etc.
Regards,
/HS