Re: What dll is necessary to use system()-function

2010-01-04 Thread A.R. Burgers

Michael Schmid schreef:

from http://linux.die.net/man/3/system:

system() executes a command specified in command by calling */bin/sh* -c 
command,

you'll have to make sure /bin/sh will work, that is what I found.

Teun


Hi!

Started to use cygwin, it's great. Now I have a working prog and want it run
on another computer.

So I moved the exe, and all necessary dlls... But there seem to be one
missing, because the system()-function (http://linux.die.net/man/3/system)
doesn't work... E.g. system(cp ./file1 ./file2).

Does anybody know which dll I need? Or may the problem be another one?

Is there any way to quickly find out which dll i need for a specific
function to run? Simple example: I included stdio.h and used printf and want
to know which dll I need now (this case is easy, but just if I wouldn't
know...)

Thanks!
Michael



--
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



Re: What dll is necessary to use system()-function

2010-01-04 Thread Christopher Faylor
On Mon, Jan 04, 2010 at 12:48:06PM -0800, Michael Schmid wrote:
>
>Hi!
>
>Started to use cygwin, it's great. Now I have a working prog and want it run
>on another computer.
>
>So I moved the exe, and all necessary dlls... But there seem to be one
>missing, because the system()-function (http://linux.die.net/man/3/system)
>doesn't work... E.g. system(cp ./file1 ./file2).
>
>Does anybody know which dll I need? Or may the problem be another one?

All of the standard libc functions like system() come from cygwin1.dll.
Your system wouldn't operate without this dll.  It is installed by
default.

>Is there any way to quickly find out which dll i need for a specific
>function to run? Simple example: I included stdio.h and used printf and want
>to know which dll I need now (this case is easy, but just if I wouldn't
>know...)

The standard functions come from cygwin1.dll.  Otherwise, you can tell
what dlls are used by your program via "ldd yourprogram".

Remember if you distribute your program outside of your immediate company
you have to adhere to Cygwin's GPL licensing.

cgf

--
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



What dll is necessary to use system()-function

2010-01-04 Thread Michael Schmid

Hi!

Started to use cygwin, it's great. Now I have a working prog and want it run
on another computer.

So I moved the exe, and all necessary dlls... But there seem to be one
missing, because the system()-function (http://linux.die.net/man/3/system)
doesn't work... E.g. system(cp ./file1 ./file2).

Does anybody know which dll I need? Or may the problem be another one?

Is there any way to quickly find out which dll i need for a specific
function to run? Simple example: I included stdio.h and used printf and want
to know which dll I need now (this case is easy, but just if I wouldn't
know...)

Thanks!
Michael
-- 
View this message in context: 
http://old.nabble.com/What-dll-is-necessary-to-use-system%28%29-function-tp27019085p27019085.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
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