This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem in using gnu-win32(b18)



Hi!

When I used system call like these,
  I found problem that output files were not appeared immediately.

int main()
{
    :
    :
 system("gcc -o test.o -I~~ -L~~  test.c");                       // call-1
 system("gcc -o test.exe -I~~  -L~~  test2.c test3.c  test.o");   // call-2
 execvp("test.exe", argv);                                        // call-3
    :
    :
}

call-2 put error message,
  because test.o file has not been yet existed at call-2 time.
call-3 put error messages, too.
  Because test.exe file has not been yet existed at call-3 time.

These files(test.o & test.exe) were appeared in some times later.

To my knowledge, system() function is started after previous process termination. But this situation tell different results!

How  can I use system call function without this problem?
How  can I force these output files to be written immediately?

Let me see any clue!!

Thank you!

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]