Starting .exe: DOS prompt OK, double-click not

Kodaj Bence kodaj@freemail.hu
Sat Mar 22 16:25:00 GMT 2003


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@freemail.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.)
-------------- next part --------------
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;\w007円
033円[32m\]\u@\h \[033円[33m\w033円[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
-------------- next part --------------
--
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/


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /