How to let program running without cygwin environment???

Igor Pechtchanski pechtcha@cs.nyu.edu
Tue Sep 2 13:34:00 GMT 2003


On Mon, 1 Sep 2003 xuzhd@Lenovo.com wrote:

> I wrote a C program using cygwin, and I hope I can minimize my install
> package only including my program and the pre-requisite files such as
> cygwin1.dll, ipc-daemon.exe and so on. I had thought that I realized my
> goal, but I found that my program didn't run stably after some long-term
> tests. I also let my program running under machines installed with
> cygwin, and the results are stable though the test time is not very
> long. I wonder if there are some important files ingored by me?

Run "cygcheck yourprog.exe".  This should show you all the DLLs that your
program expects to find at runtime.

It is generally recommended that you use setup.exe to install Cygwin on
the machines you'll be running Cygwin programs on, rather than copy the
files by hand.  If you feel adventurous, you could try compiling your
program using MinGW, by adding a "-mno-cygwin" flag to gcc, but be aware
that you won't be getting full POSIX emulation (in particular, if your
program uses shared memory, you'll *have* to use Cygwin, AFAIK).
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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



More information about the Cygwin mailing list