Re: Running cygwin built programs in Windows XP

2002-12-22 Thread Gareth Pearce

This is a BAD idea (TM).

Gareth

 Just stick cygwin1.dll in your windows\system32 folder.

 -Original Message-
 From: John Seeliger [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, December 21, 2002 6:41 PM
 To: [EMAIL PROTECTED]
 Subject: Running cygwin built programs in Windows XP

 How do I run a program that I built with gcc under Cygwin in Windows?
When
 I try to run them, it says it can't find cygwin1.dll.

 --
 John Seeliger  Limited but increasing content
 [EMAIL PROTECTED]   http://www.freewebz.com/hudathunkett/
 [EMAIL PROTECTED]









 --
 Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
 Bug reporting: http://cygwin.com/bugs.html
 Documentation: http://cygwin.com/docs.html
 FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Running cygwin built programs in Windows XP

2002-12-22 Thread John Seeliger
Igor Pechtchanski [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Sat, 21 Dec 2002, John Seeliger wrote:

  How do I run a program that I built with gcc under Cygwin in Windows?
When
  I try to run them, it says it can't find cygwin1.dll.

 Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
 the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
 there is less posix support there (IIRC).
 Igor

Thanks.  I gave the -mno-cygwin a try and it worked.  I added c:\cygwin\bin
to my autoexec.bat.

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\WINDOWS\system32cd ..\..

C:\type autoexec.bat
SET CLASSPATH=C:\WINDOWS\Java\Lib;C:\CONNECT!CORP;C:\SOFTWARE
PROJECTS\JAVA\LIB;

SET PATH=%PATH%;C:\JDK1.1\BIN;c:\cygwin\bin;


C:\set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\John Seeliger\Application Data
CLASSPATH=;C:\CONNECT!CORP;
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=YOUR-VIU5VCDUB5
ComSpec=C:\WINDOWS\system32\cmd.exe
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\John Seeliger
LOGONSERVER=\\YOUR-VIU5VCDUB5
NUMBER_OF_PROCESSORS=1
OS=Windows_NT
Path=C:\WINDOWS\SYSTEM32;C:\WINDOWS;C:\WINDOWS\SYSTEM32\WBEM;C:\PROGRAM
FILES\BO
RLAND\CBUILDER3\BIN;C:\JDK1.1\BIN;;C:\JDK1.1\BIN;C:\JDK1.1\LIB;
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 8 Stepping 10, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=080a
ProgramFiles=C:\Program Files
PROMPT=$P$G
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\JOHNSE~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\JOHNSE~1\LOCALS~1\Temp
USERDOMAIN=YOUR-VIU5VCDUB5
USERNAME=John Seeliger
USERPROFILE=C:\Documents and Settings\John Seeliger
windir=C:\WINDOWS

C:\

It still will not recognize it and programs developed in cygwin without
the -mno-cygwin option and opened directly from windows give the error
message about cygwin1.dll .  Where does it need to go?

Relating to Randall's comments about distributing cygwin developed s/w, if I
create something that relies on cygwin1.dll, I should put it under the GPL
and release the source code with it and then include cygwin1.dll?  Is this
how it is done?

Also, is there any documentation on using the cygwin java compiler,
especially to create native code.  This is the primary reason I recently
installed the newer cygwin stuff.  The project I am currently working on,
mostly for my own person use, though if it benefited the world I would
release it, is to allow me to add a context menu item
(http://tinyurl.com/3rc7) in IE Add to Save Queue, for example, and when
this was selected for a link, a program would be activated the would add
this link and the associated name to a queue and proceed to download and
save it to a file with the name of the link on the page.  For example,
suppose:

a href=http://www.foobarnews.com/iceman122202.htm;Scientists Thaw out Ice
Age Caveman/a

it would download the file from http://www.foobarnews.com/iceman122202.htm
and save it to a file Scientists Thaw out Ice Age Caveman without having
to ask me what filename to use.  (Unless of course there was already another
Scientists Thaw out Ice Age Caveman file.)

I have a lot of s/w development packages (MSVB 6.0 Learning Edition, Borland
C++ Builder 3, cygwin, JDK 1.1, J2SDK 1.4.1 (I just downloaded this one),
Borland JBuilder 7 Personal, Digital Mars D, Javascript via IE or Opera,
Squeak), all free stuff except the VB and BCB, but each seemed to lack
something to do what I have been wanting to do earlier with regard to a
spidering tool (http://tinyurl.com/3rc3).  The BCB 3 doesn't have much
(any?) support for downloading web pages (and I am not looking to spend
several hundred dollars necessary to buy the new version to be able to
download pages easier from IE), the Java won't let me save files, unless I
use java.exe to run them (which I am not sure I can legally distribute, if I
made a project worth of doing so) or compile in native mode (which the
JDK1.1 doesn't do and I don't think the J2SDK does either).  The Javascript
won't let me save files either.  I have no idea what Squeak will do (I don't
know Smalltalk) or what libraries are distributed with D (I have not written
anything in either of these) and the BJB will produce native code, but if I
choose to distribute it, I can't under the free license.

That leaves me with cygwin and VB.  At the time I wanted to build the
webtool earlier this year, I couldn't get the documentation on VB working
and I purchased it at a Computer City (that had just become CompUSA because
of the merger) in Sept. 98 and I never got it to register with MS then or
even now, though I have found the documentation on msdn's website and a
couple of free books http://www.mvps.org/vb/hardcore/index.html and
http://tinyurl.com/3rcv (=VB 5), so if necessary, I could give that 

RE: Running cygwin built programs in Windows XP

2002-12-22 Thread Larry Hall (RFK Partners, Inc)
Anyone who decides they want to do this is free to but it will invalidate
their installation and make it unstable.  Future problems they may run into
as a result will not be seriously entertained by this list (assuming said
persons post to this list for help in those cases) until cygwin1.dll is 
put back where setup installed it.  For anyone wondering, copying 
cygwin1.dll to this directory or any other carries the same warning.

Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX



At 12:55 AM 12/22/2002, Pharas wrote:
Just stick cygwin1.dll in your windows\system32 folder.

-Original Message-
From: John Seeliger [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 21, 2002 6:41 PM
To: [EMAIL PROTECTED]
Subject: Running cygwin built programs in Windows XP

How do I run a program that I built with gcc under Cygwin in Windows?  When
I try to run them, it says it can't find cygwin1.dll.

--
John Seeliger  Limited but increasing content
[EMAIL PROTECTED]   http://www.freewebz.com/hudathunkett/
[EMAIL PROTECTED]









--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Running cygwin built programs in Windows XP

2002-12-22 Thread Michael A Chase
On Sun, 22 Dec 2002 13:27:18 -0600 John Seeliger [EMAIL PROTECTED] wrote:

 Igor Pechtchanski [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Sat, 21 Dec 2002, John Seeliger wrote:

 How do I run a program that I built with gcc under Cygwin in Windows? When
 I try to run them, it says it can't find cygwin1.dll.

 Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
 the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
 there is less posix support there (IIRC).

 Thanks.  I gave the -mno-cygwin a try and it worked.  I added
 c:\cygwin\bin
 to my autoexec.bat.

As far as I know, autoexec.bat has no effect in WinXP.

 It still will not recognize it and programs developed in cygwin without
 the -mno-cygwin option and opened directly from windows give the error
 message about cygwin1.dll .  Where does it need to go?

You need to add it to PATH in 'My Computer' - ??? - Environment.
Look up Environment in WinXP's help.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Running cygwin built programs in Windows XP

2002-12-22 Thread Michael A Chase
On Sun, 22 Dec 2002 13:27:18 -0600 John Seeliger [EMAIL PROTECTED] wrote:

 Igor Pechtchanski [EMAIL PROTECTED] wrote in message
 [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 On Sat, 21 Dec 2002, John Seeliger wrote:

 How do I run a program that I built with gcc under Cygwin in Windows? When
 I try to run them, it says it can't find cygwin1.dll.

 Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
 the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
 there is less posix support there (IIRC).

 Thanks.  I gave the -mno-cygwin a try and it worked.  I added
 c:\cygwin\bin
 to my autoexec.bat.

Autoexec.bat is not read at startup in WinXP.

 It still will not recognize it and programs developed in cygwin without
 the -mno-cygwin option and opened directly from windows give the error
 message about cygwin1.dll .  Where does it need to go?

You need to add it to PATH in 'My Computer' - ??? - Environment.
Look up Environment in WinXP's help.

-- 
Mac :})
** I normally forward private questions to the appropriate mail list. **
Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.html
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Running cygwin built programs in Windows XP

2002-12-22 Thread Pharas
I meant to just copy it not move it outright, as far as unstability I have
been using cygwin for quite a long time and have had no probs with this.
Even when you upgrade the cygwin package and install it, it will ask you if
you would like to remove the old dll from the system32 folder. Then you
could just do a copy of the new one. That said you could just make a copy of
it to the folder where your executable is it will work there to. Thanks for
your time.


Pharas


-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, December 22, 2002 1:41 PM
To: Pharas; [EMAIL PROTECTED]
Subject: RE: Running cygwin built programs in Windows XP

Anyone who decides they want to do this is free to but it will invalidate
their installation and make it unstable.  Future problems they may run into
as a result will not be seriously entertained by this list (assuming said
persons post to this list for help in those cases) until cygwin1.dll is 
put back where setup installed it.  For anyone wondering, copying 
cygwin1.dll to this directory or any other carries the same warning.

Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX



At 12:55 AM 12/22/2002, Pharas wrote:
Just stick cygwin1.dll in your windows\system32 folder.

-Original Message-
From: John Seeliger [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 21, 2002 6:41 PM
To: [EMAIL PROTECTED]
Subject: Running cygwin built programs in Windows XP

How do I run a program that I built with gcc under Cygwin in Windows?  When
I try to run them, it says it can't find cygwin1.dll.

--
John Seeliger  Limited but increasing content
[EMAIL PROTECTED]   http://www.freewebz.com/hudathunkett/
[EMAIL PROTECTED]









--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/





--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Running cygwin built programs in Windows XP

2002-12-22 Thread Randall R Schulz
Pharas,

Larry is correct. You are not. Problems do occur with multiple copies of 
Cygwin1.dll on a system. We see it here all the time.

Cygwin relies on a shared memory segment and when there's more than one 
copy of the DLL on a given system, eventually a second one will get loaded, 
try to initialize itself and either fail or interfere with the one that's 
already loaded and initialized.

If you want to do this, it's no skin off our nose, but DON'T recommend that 
others do so.

Randall Schulz


At 20:53 2002-12-22, Pharas wrote:
I meant to just copy it not move it outright, as far as unstability I have
been using cygwin for quite a long time and have had no probs with this.
Even when you upgrade the cygwin package and install it, it will ask you if
you would like to remove the old dll from the system32 folder. Then you
could just do a copy of the new one. That said you could just make a copy of
it to the folder where your executable is it will work there to. Thanks for
your time.

Pharas

-Original Message-
From: Larry Hall (RFK Partners, Inc) [mailto:[EMAIL PROTECTED]]
Sent: Sunday, December 22, 2002 1:41 PM
To: Pharas; [EMAIL PROTECTED]
Subject: RE: Running cygwin built programs in Windows XP

Anyone who decides they want to do this is free to but it will invalidate
their installation and make it unstable.  Future problems they may run into
as a result will not be seriously entertained by this list (assuming said
persons post to this list for help in those cases) until cygwin1.dll is
put back where setup installed it.  For anyone wondering, copying
cygwin1.dll to this directory or any other carries the same warning.

Larry Hall  [EMAIL PROTECTED]
RFK Partners, Inc.  http://www.rfk.com
838 Washington Street   (508) 893-9779 - RFK Office
Holliston, MA 01746 (508) 893-9889 - FAX


At 12:55 AM 12/22/2002, Pharas wrote:
Just stick cygwin1.dll in your windows\system32 folder.

-Original Message-
From: John Seeliger [mailto:[EMAIL PROTECTED]]
Sent: Saturday, December 21, 2002 6:41 PM
To: [EMAIL PROTECTED]
Subject: Running cygwin built programs in Windows XP

How do I run a program that I built with gcc under Cygwin in Windows?  When
I try to run them, it says it can't find cygwin1.dll.

--
John Seeliger



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Running cygwin built programs in Windows XP

2002-12-21 Thread Igor Pechtchanski
On Sat, 21 Dec 2002, John Seeliger wrote:

 How do I run a program that I built with gcc under Cygwin in Windows?  When
 I try to run them, it says it can't find cygwin1.dll.

Make sure c:\cygwin\bin is in your PATH.  Another alternative is to use
the mingw runtime by giving gcc the -mno-cygwin option, but be aware that
there is less posix support there (IIRC).
Igor
-- 
http://cs.nyu.edu/~pechtcha/
  |\  _,,,---,,_[EMAIL PROTECTED]
ZZZzz /,`.-'`'-.  ;-;;,_[EMAIL PROTECTED]
 |,4-  ) )-,_. ,\ (  `'-'   Igor Pechtchanski
'---''(_/--'  `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

Oh, boy, virtual memory! Now I'm gonna make myself a really *big* RAMdisk!
  -- /usr/games/fortune


--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




Re: Running cygwin built programs in Windows XP

2002-12-21 Thread Randall R Schulz
John,

Cygwin is a POSIX emulation environment for Windows. By default, the C / 
C++ compiler, linker and libraries all supply some portion or aspect of 
that emulation and the primary runtime component of the emulation is the 
Cygwin1.dll.

If you want to create Windows-native applications using Cygwin tools but 
which will not be Cygwin executables (i.e., that will be independent of 
Cygwin during execution) there's a compiler option -mno-cygwin which 
triggers a whole series of variant compilation and linking procedures 
designed to produce executables that are independent of the Cygwin runtime.

It sounds like that's the option you need to use to achieve the results you 
desire. If, however, you want a program that has all the POSIX capabilities 
provided by Cygwin itself, then you're bound to executing in a Cygwin 
environment, and that means at an absolute minimum, the presence of 
Cygwin1.dll and, if you're distributing this software, conformance with the 
Cygwin license's redistribution terms.

The horns of a dilemma, you say? Nonsense! It's the best of both worlds!

Randall Schulz


At 16:41 2002-12-21, John Seeliger wrote:
How do I run a program that I built with gcc under Cygwin in Windows?  When
I try to run them, it says it can't find cygwin1.dll.

--
John Seeliger



--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/




RE: Running cygwin built programs in Windows XP

2002-12-21 Thread Pharas
Just stick cygwin1.dll in your windows\system32 folder.

-Original Message-
From: John Seeliger [mailto:[EMAIL PROTECTED]] 
Sent: Saturday, December 21, 2002 6:41 PM
To: [EMAIL PROTECTED]
Subject: Running cygwin built programs in Windows XP

How do I run a program that I built with gcc under Cygwin in Windows?  When
I try to run them, it says it can't find cygwin1.dll.

--
John Seeliger  Limited but increasing content
[EMAIL PROTECTED]   http://www.freewebz.com/hudathunkett/
[EMAIL PROTECTED]









--
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ:   http://cygwin.com/faq/