This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: 1.7.5: running in a non cygwin command prompt


[Please:
  http://www.cygwin.com/acronyms/#PCYMTWLL
Thanks.]

On 2010-07-08 01:30Z, Shalomov, Inessa A (US SSA) wrote:
> I am trying to get the system() call working in my driver which I am
> running in a DOS terminal. For the sake of not porting out all of
> cygwin libraries and executables, I am trying to narrow down to a set
> of dll's and exe's required for my driver and only include those in
> my path.

If you want as few Cygwin dependencies as possible...

> 3) If the system() call doesn't work when used in a non-cygwin
> environment, is there a windows native system() equivalent call I
> can use?

...and a native program with no Cygwin dependencies would be ideal...

>    retval = system("HelloWorld.exe");

...and all you really need to do is invoke a program, then I suggest
MinGW gcc (or Cygwin's old gcc-3 with '-mno-cygwin'). It provides a
non-Cygwin implementation of the standard C system() function. There
won't be any runtime dependencies except for dlls provided by the OS:

$cygcheck ./run_hello.exe
.\run_hello.exe
  C:\WINDOWS\System32\KERNEL32.dll
    C:\WINDOWS\System32\ntdll.dll
  C:\WINDOWS\System32\msvcrt.dll

For fancier needs, consider the msw CreateProcess() system call.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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