delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/08/02:45:37

From: @runyon.cygnus.com (Kim KiSun)
Subject: Problem in using gnu-win32(b18)
8 Jan 1998 02:45:37 -0800 :
Message-ID: <199801080817.RAA25351.cygnus.gnu-win32@mithra.snu.ac.kr>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019