delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/22/10:10:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Date: Sat, 22 Mar 2003 16:10:27 +0100 (CET)
From: Kodaj Bence <kodaj AT freemail DOT hu>
Subject: Starting .exe: DOS prompt OK, double-click not
To: cygwin AT cygwin DOT com
Message-ID: <freemail.20030222161027.97148@fm8.freemail.hu>
X-Originating-IP: [193.225.87.97]
X-HTTP-User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; Q312461)
MIME-Version: 1.0

--0-1804289383-1048345827=:97148
Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-2

Hi all,

We are porting a Linux application to Windows. The app heavily uses 
POSIX calls like fork(), and we don't want to rewrite it, therefore we 
have to rely on Cygwin. The source is in C++; we compile & build it with 
the Cygwin tools. Our problem is the following: the resulting .exe can 
be started only from a DOS prompt. When I double-click on the file in 
Windows Explorer, I get an error message. What might cause this?

Details: the setup on my machine looks like this:
C:\
  OurAppFolder\
       OurApp.exe
       OurScript.tcl
       cygwin1.dll

When OurApp.exe starts up, it invokes Tcl/Tk's "wish" shell, and passes 
OurScript.tcl to it for interpretation. (The actual Tcl/Tk installation on my 
machine is ActiveTcl 8.4., but that's not really important.)

Now, when I double-click on OurApp.exe in Windows Explorer, I get the 
following error message from wish:

Error in startup script
couldn't read file "/cygdrive/c/OurAppFolder/OurScript.tcl": no such file 
or directory

But when I open a DOS prompt in OurAppFolder and start OurApp from 
there, then everything's fine. (Notice that it's a plain DOS prompt, not 
Cygwin's bash.)

So my question is: what's the reason for this behavior? To me it seems 
that the C:\OurAppFolder\OurScript.tcl path gets transformed into its 
Cygwin equivalent, and wish doesn't understand the transformed path. 
But why is everything OK from the DOS prompt? And is there a way to 
make the double-click work as expected?

Any help is greatly appreciated. Please cc replies to kodaj AT freemail DOT hu 
as well.

Thanks in advance,
Bence Kodaj

P.S.: I've attached the result of "cygcheck -s -v -r ". (You might find that 
some of the developer tools are missing; that's because OurApp.exe 
has been built on a different machine, I'm just running it.)


--0-1804289383-1048345827=:97148
Content-Type: TEXT/plain; name="cygcheck.txt"; CHARSET=ISO-8859-2
Content-Disposition: attachment; filename="cygcheck.txt"


Cygwin Win95/NT Configuration Diagnostics
Current System Time: Sat Mar 22 16:05:23 2003

Windows NT Ver 4.0 Build 1381 Service Pack 6

Path:	C:\cygwin\usr\local\bin
	C:\cygwin\bin
	C:\cygwin\bin
	d:\Program Files\Putty
	d:\Program Files\Intel\ICID70
	d:\Program Files\Intel\EDB70
	d:\Program Files\Intel\ISelect\Bin6
	d:\Program Files\Intel\Compiler70\IA32\Bin
	c:\Program Files\Common Files\Intel\Shared Files\Ia32\Bin
	d:\Program Files\ActiveTcl\bin
	d:\Tcl\bin
	c:\WINNT\system32
	c:\WINNT
	c:\Program Files\VirusBuster\Bin
	c:\Program Files\VDMSound\
	d:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT
	d:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin
	d:\Program Files\Microsoft Visual Studio\Common\Tools
	d:\Program Files\Microsoft Visual Studio\VC98\bin
	c:\Program Files\RFSTool
	C:\cygwin\bin
	C:\cygwin\bin
	h:\FFF-Raindrop\official\bin
	C:\cygwin\usr\X11R6\bin

SysDir: C:\WINNT\System32
WinDir: C:\WINNT

HOME = `C:\cygwin\home\kodaj'
MAKE_MODE = `unix'
PWD = `/home/kodaj'
USER = `kodaj'

COMPUTERNAME = `THEBA'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DA_UNDO_MAX = `5'
DISPLAY = `localhost:0.0'
HOMEDRIVE = `C:'
HOMEPATH = `\'
INCLUDE = `D:\Program Files\Microsoft Visual Studio\VC98\include'
INTEL_LICENSE_FILE = `C:\Program Files\Common Files\Intel\Licenses\w_cpp_29078972.lic'
LIB = `D:\Program Files\Microsoft Visual Studio\VC98\lib'
LOGONSERVER = `\\THEBA'
MANPATH = `:/usr/ssl/man'
MSDEVDIR = `D:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/usr/bin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 4 Stepping 2, AuthenticAMD'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0402'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\TEMP'
TERM = `cygwin'
TMP = `c:\TEMP'
USERDOMAIN = `THEBA'
USERNAME = `kodaj'
USERPROFILE = `C:\WINNT\Profiles\kodaj'
VDMSPATH = `C:\Program Files\VDMSound\'
WINDIR = `C:\WINNT'
_ = `/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
  (default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  NTFS    2047Mb  97% CP CS UN PA FC     System
d:  hd  NTFS   10001Mb  56% CP CS UN PA FC     Munka
e:  cd           N/A    N/A                    
h:  net NTFS    4840Mb 100% CP CS    PA        kodaj

C:\cygwin                          /                         system  binmode
C:\cygwin/bin                      /usr/bin                  system  binmode
C:\cygwin/lib                      /usr/lib                  system  binmode
C:\cygwin\usr\X11R6\lib\X11\fonts  /usr/X11R6/lib/X11/fonts  system  binmode
.                                  /cygdrive                 user    binmode,cygdrive

Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe

   58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2002/5/7 8:33
  847k 2003/01/09 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.7.dll" v0.0 ts=2003/1/9 21:41
  644k 2002/12/08 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto.dll" v0.0 ts=2002/12/8 20:57
   45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
                  "cygform5.dll" v0.0 ts=2001/4/25 7:28
   35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
                  "cygform6.dll" v0.0 ts=2002/1/9 7:03
   19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
                  "cyggdbm.dll" v0.0 ts=2002/2/20 4:05
   17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/7 5:34
   20k 2002/10/10 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory5.dll" v0.0 ts=2002/10/10 19:28
  929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2002/6/24 20:24
   22k 2001/12/13 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-1.dll" v0.0 ts=2001/12/13 10:28
   28k 2002/09/20 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2002/9/20 5:13
   21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl.dll" v0.0 ts=2001/6/20 19:09
   26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/4/25 7:27
   20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu6.dll" v0.0 ts=2002/1/9 7:03
  156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/4/25 7:29
  175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++6.dll" v0.0 ts=2002/1/9 7:03
  226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/4/25 7:17
  202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses6.dll" v0.0 ts=2002/1/9 7:03
   15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/4/25 7:27
   12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel6.dll" v0.0 ts=2002/1/9 7:03
   40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre.dll" v0.0 ts=2001/11/21 23:15
   39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix.dll" v0.0 ts=2001/11/21 23:15
  108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/7 5:34
  127k 2002/10/10 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline5.dll" v0.0 ts=2002/10/10 19:28
  177k 2003/01/09 C:\cygwin\bin\cygssl-0.9.7.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.7.dll" v0.0 ts=2003/1/9 21:41
  165k 2002/12/08 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl.dll" v0.0 ts=2002/12/8 20:57
   50k 2002/03/12 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2002/3/12 5:38
  885k 2003/01/24 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2003/1/24 3:31
    Cygwin DLL version info:
        DLL version: 1.3.19
        DLL epoch: 19
        DLL bad signal mask: 19005
        DLL old termios: 5
        DLL malloc env: 28
        API major: 0
        API minor: 71
        Shared data: 3
        DLL identifier: cygwin1
        Mount registry: 2
        Cygnus registry name: Cygnus Solutions
        Cygwin registry name: Cygwin
        Program options name: Program Options
        Cygwin mount registry name: mounts v2
        Cygdrive flags: cygdrive flags
        Cygdrive prefix: cygdrive prefix
        Cygdrive default prefix: 
        Build date: Thu Jan 23 21:31:48 EST 2003
        CVS tag: cygwin-1-3-19-1
        Shared id: cygwin1S3


Cygwin Package Information
Last downloaded files to: F:\Cygwin-install
Last downloaded files from: F:\Cygwin-install

Package             Version             
XFree86-base        4.2.0-1             
XFree86-bin         4.2.0-2             
XFree86-etc         4.2.0-1             
XFree86-fenc        4.2.0-2             
XFree86-fnts        4.2.0-2             
XFree86-lib         4.2.0-3             
XFree86-prog        4.2.0-1             
XFree86-startup-scripts4.2.0-3             
XFree86-xserv       4.2.0-15            
_update-info-dir    00127-1             
ash                 20020731-1          
autoconf            2.54-1              
autoconf-devel      2.57-1              
autoconf-stable     2.13-4              
automake            1.7.1-1             
automake-devel      1.7.2-1             
automake-stable     1.4p5-5             
base-files          1.1-1               
base-passwd         1.0-1               
bash                2.05b-8             
binutils            20021117-1          
bzip2               1.0.2-2             
ctags               5.2-1               
cygwin              1.3.19-1            
diff                1.0-1               
diffutils           2.8.1-1             
emacs               21.2-12             
fileutils           4.1-1               
findutils           4.1.7-4             
gawk                3.1.1-5             
gcc2                2.95.3-10           
gdbm                1.8.0-4             
gettext             0.11.5-1            
grep                2.5-1               
gzip                1.3.3-4             
libbz2_1            1.0.2-2             
libiconv2           1.8-2               
libintl             0.10.38-3           
libintl1            0.10.40-1           
libintl2            0.11.5-1            
libncurses5         5.2-1               
libncurses6         5.2-8               
libreadline4        4.1-2               
libreadline5        4.3-2               
login               1.7-1               
m4                  1.4-1               
make                3.79.1-7            
mingw-runtime       2.3-1               
mktemp              1.4-1               
ncurses             5.2-8               
openssh             3.5p1-3             
openssl             0.9.7-1             
openssl096          0.9.6h-1            
pcre                3.7-1               
perl                5.6.1-2             
readline            4.3-2               
sed                 4.0.5-1             
sh-utils            2.0.15-3            
tar                 1.13.25-1           
termcap             20020930-1          
terminfo            5.2-3               
texinfo             4.2-4               
textutils           2.0.21-1            
w32api              2.1-1               
which               1.5-1               
zlib                1.1.4-1             

Use -h to see help about each section


--0-1804289383-1048345827=:97148
Content-Type: text/plain; charset=us-ascii

--
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/
--0-1804289383-1048345827=:97148--

- Raw text -


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