This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Install&GCC use problem


Thanks for your reply, Andy.  Please read on....

Andrew Markebo wrote:
> 
> You doubleclicked on the cygwin icon, got a black window with a prompt
> like $? And you tried to run gcc from there..
> 

No.  In my step 3 below I doubleclicked on the cygwin icon, and cygwin
opened the black window.  (This is the window I subsequently ran
cygcheck from).  However, to try to run gcc I opened a separate new DOS
command window, and tried to compile from the new DOS window.  I did
this because in the 'expectations for Windows programmers' section of
the cygwin website (user's guide?) it seemed to say this would work.  I
didn't try running gcc from the cygwin window because it seemed like a
'UNIX-like' interface, and I don't know UNIX commands.

> How you copy'n'paste from the window, try clicking on the small icon
> up left, and choose edit->mark, mark region and paste into email..
> 
> Or do cygcheck [...] > file.txt and include file.txt in your mail.
> 

edit->mark didn't work because I could only mark the last (visible) part
of the output.  '> file.txt did the trick.  The output is immediately
below.  Perhaps this will enable you to diagnose my problem.

Thanks,
John B



Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Mar 14 18:51:37 2001

Win95 Ver 4.0 build 67109975  B

Path:	/usr/local/bin
	/usr/bin
	/bin
	/cygdrive/c/WINDOWS
	/cygdrive/c/WINDOWS/COMMAND
	/cygdrive/d/MODLSOFT/ALOGIT/ALO38
	/cygdrive/d/MODLSOFT/ALOGIT/ALO32
	/cygdrive/d/MODLSOFT/ALOGIT/ALOGSHEL
	/cygdrive/c/SHAREWAR/EPSTOOL
	/cygdrive/d/MODLSOFT/ALOGIT/ALOMEG
	/cygdrive/c/PROGRA~1/ULTRAEDT
	/cygdrive/c/PROGRA~1/ULTRAE~1
	/cygdrive/e/EMME2/ETC
	/cygdrive/c/PROGRA~1/ULTRAE~1
	/cygdrive/c/PROGRA~1/NETWOR~1/MCAFEE~1/MCAFEE~1
	/cygdrive/c/PROGRA~1/ULTRAE~1

SysDir: C:\WINDOWS\SYSTEM
WinDir: C:\WINDOWS

PWD = `/home/john'
USER = `john'
MAKE_MODE = `unix'
HOME = `/home/john'

PROMPT = `$p$g'
COMSPEC = `C:\COMMAND.COM'
!C: = `C:\WINDOWS'
CMDLINE = `bash --login -i'
HOSTNAME = `JOHN'
!D: = `D:\modlsoft\cygwin\bin'
E2KEY = `LPT1'
CLASSPATH = `C:\PROGRA~1\PHOTOD~1.0\ADOBEC~1'
WINDIR = `C:\WINDOWS'
WINBOOTDIR = `C:\WINDOWS'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
MSINPUT = `C:\MSINPUT'
MACHTYPE = `i686-pc-cygwin'
OLDPWD = `/usr/bin'
TEMP = `/cygdrive/c/WINDOWS/TEMP'
EMME2 = `e:\emme2'
SSI_ACT = `200,200,500                              '
SHLVL = `1'
SHELL = `/bin/sh'
HOSTTYPE = `i686'
OSTYPE = `cygwin'
TERM = `cygwin'
_ = `/usr/bin/cygcheck'
TZ = `EST5EDT4,M4.1.0/2,M10.5.0/2'

HKEY_CURRENT_USER\Software\Cygnus Support
HKEY_CURRENT_USER\Software\Cygnus Support\CYGWIN.DLL setup
  (default) = 0x00000001
  Mount 0 = `C:\ /'
  Mount 1 = ` '
  Mount 2 = ` '
  Mount 3 = ` '
  Mount 4 = ` '
  Mount 5 = ` '
  Mount 6 = ` '
  Mount 7 = ` '
  Mount 8 = ` '
  Mount 9 = ` '
HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000020
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
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `d:\modlsoft\cygwin'
  flags = 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `d:/modlsoft/cygwin/bin'
  flags = 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `d:/modlsoft/cygwin/lib'
  flags = 0x00000008
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd           N/A    N/A                    
c:  hd  FAT     2047Mb  98% CP    UN           MAX
d:  hd  FAT32  19561Mb  41% CP    UN           WD
e:  hd  FAT     2047Mb  60% CP    UN           MAX
f:  hd  FAT      776Mb  51% CP    UN           MAX
g:  fd           N/A    N/A                    
h:  cd           N/A    N/A                    

d:\modlsoft\cygwin\bin  /usr/bin  system  textmode
d:\modlsoft\cygwin\lib  /usr/lib  system  textmode
d:\modlsoft\cygwin  /        system  textmode

Found: d:\modlsoft\cygwin\bin\bash.exe
Found: d:\modlsoft\cygwin\bin\cat.exe
Found: d:\modlsoft\cygwin\bin\cpp.exe
Found: d:\modlsoft\cygwin\bin\find.exe
Found: c:\WINDOWS\COMMAND\find.exe
Warning: d:\modlsoft\cygwin\bin\find.exe hides
c:\WINDOWS\COMMAND\find.exe
Found: d:\modlsoft\cygwin\bin\gcc.exe
Found: d:\modlsoft\cygwin\bin\gdb.exe
Found: d:\modlsoft\cygwin\bin\ld.exe
Found: d:\modlsoft\cygwin\bin\ls.exe
Found: d:\modlsoft\cygwin\bin\make.exe
Found: d:\modlsoft\cygwin\bin\sh.exe

   56k 2000/12/03 d:\modlsoft\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0
sys=4.0
                  "cygbz21.0.dll" v0.0 ts=2000/11/20 18:53
  390k 2000/12/05 d:\modlsoft\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/11/25 20:39
    5k 2000/12/05 d:\modlsoft\cygwin\bin\cygtclpip80.dll - os=4.0
img=1.0 sys=4.0
   10k 2000/12/05 d:\modlsoft\cygwin\bin\cygtclreg80.dll - os=4.0
img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/11/25 20:39
   81k 2000/12/05 d:\modlsoft\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0
sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/11/25 20:43
   35k 2000/12/05 d:\modlsoft\cygwin\bin\cygitk30.dll - os=4.0 img=1.0
sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/11/25 20:43
  623k 2000/12/05 d:\modlsoft\cygwin\bin\cygtk80.dll - os=4.0 img=1.0
sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/11/25 20:43
   18k 2000/10/23 d:\modlsoft\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0
sys=4.0
                  "cyggdbm.dll" v0.0 ts=2000/10/22 22:26
   14k 2000/10/23 d:\modlsoft\cygwin\bin\cygintl.dll - os=4.0 img=1.0
sys=4.0
                  "cygintl.dll" v0.0 ts=2000/10/23 15:02
   45k 2000/10/22 d:\modlsoft\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0
sys=4.0
                  "cygjbig1.dll" v0.0 ts=2000/10/22 19:06
  119k 2000/10/23 d:\modlsoft\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0
sys=4.0
                  "cygjpeg6b.dll" v0.0 ts=2000/10/22 20:58
  163k 2001/02/03 d:\modlsoft\cygwin\bin\cygpng2.dll - os=4.0 img=1.0
sys=4.0
                  "cygpng2.dll" v0.0 ts=2001/2/3 16:21
   82k 2001/01/21 d:\modlsoft\cygwin\bin\cygform5.dll - os=4.0 img=1.0
sys=4.0
                  "cygform5.dll" v0.0 ts=2001/1/21 15:39
   53k 2001/01/21 d:\modlsoft\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0
sys=4.0
                  "cygmenu5.dll" v0.0 ts=2001/1/21 15:39
  414k 2001/01/21 d:\modlsoft\cygwin\bin\cygncurses++5.dll - os=4.0
img=1.0 sys=4.0
                  "cygncurses++5.dll" v0.0 ts=2001/1/21 15:40
  299k 2001/01/21 d:\modlsoft\cygwin\bin\cygncurses5.dll - os=4.0
img=1.0 sys=4.0
                  "cygncurses5.dll" v0.0 ts=2001/1/21 15:38
   34k 2001/01/21 d:\modlsoft\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0
sys=4.0
                  "cygpanel5.dll" v0.0 ts=2001/1/21 15:38
   17k 2001/01/07 d:\modlsoft\cygwin\bin\cyghistory4.dll - os=4.0
img=1.0 sys=4.0
                  "cyghistory4.dll" v0.0 ts=2001/1/6 23:34
  108k 2001/01/07 d:\modlsoft\cygwin\bin\cygreadline4.dll - os=4.0
img=1.0 sys=4.0
                  "cygreadline4.dll" v0.0 ts=2001/1/6 23:34
  243k 2000/10/23 d:\modlsoft\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0
sys=4.0
                  "cygtiff3.dll" v0.0 ts=2000/10/22 21:14
   41k 2000/11/20 d:\modlsoft\cygwin\bin\cygXpm-noX4.dll - os=4.0
img=1.0 sys=4.0
                  "cygXpm-noX4.dll" v0.0 ts=2000/11/19 21:41
   45k 2000/11/20 d:\modlsoft\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0
sys=4.0
                  "cygXpm-X4.dll" v0.0 ts=2000/11/19 21:45
   49k 2001/02/03 d:\modlsoft\cygwin\bin\cygz.dll - os=4.0 img=1.0
sys=4.0
                  "cygz.dll" v0.0 ts=2001/2/3 15:35
  615k 2001/01/31 d:\modlsoft\cygwin\bin\cygwin1.dll - os=4.0 img=1.0
sys=4.0
                  "cygwin1.dll" v0.0 ts=2001/1/31 10:08
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 8
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        dll malloc env: 28
        api major: 0
        api minor: 34
        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: Wed Jan 31 10:08:38 EST 2001
        shared id: cygwin1S3

Use -h to see help about each section







>         /Andy
> 
> / "John L. Bowman" <John_L_Bowman@alum.mit.edu> wrote:
> | I'm trying to begin using cygwin and I can't figure out how to use GCC
> | under cygwin.
> |
> | I did the following:
> |
> | 1.  downloaded DLL 1.1.8 everything except source from ftp.nas.nasa..gov
> | 2.  ran setup.exe (version 2.29), choosing 'text' default file type and
> | install for 'all', root d:\modlsoft\cygwin
> | 3.  started cygwin using desktop icon...cygwin.bat opened a dos window
> | 4.  opened a dos command prompt window.
> | 4b. changed directory to a directory containing a simple source pgm
> | named,Hello.cpp, containing the following code:
> |
> | //: C02:Hello.cpp
> | // From Thinking in C++, 2nd Edition
> | // Available at http://www.BruceEckel.com
> | // (c) Bruce Eckel 2000
> | // Copyright notice in Copyright.txt
> | // Saying Hello with C++
> | #include <iostream> // Stream declarations
> | using namespace std;
> |
> | int main() {
> |   cout << "Hello, World! I am "
> |        << 8 << " Today!" << endl;
> | } ///:~
> |
> | 4c.  entered the command:  gcc Hello.cpp  -o hello.exe
> | 4d.  received message "Bad command or file name"
> |
> | 5.  Reviewed user guide, FAQ and recent list archives to try to figure
> | out my problem.
> |
> | 6.  Ran cygcheck -s -v -r  , but couldn't figure out how to copy the
> | result from the cygwin window (I don't know UNIX) or I would have pasted
> | it here.
> |
> | I'm operating under Win95 OSR2
> |
> | Any suggestions to help me get going?
> |
> | Thanks,
> | John B
> |
> | --
> | John L. Bowman
> | 5 Beals Street Apt. 3
> | Brookline, MA  02446
> | USA
> |
> | voice:    617-232-3478
> | email:    John_L_Bowman@alum.mit.edu
> |
> | --
> | Want to unsubscribe from this list?
> | Check out: http://cygwin.com/ml/#unsubscribe-simple

-- 
John L. Bowman
5 Beals Street Apt. 3
Brookline, MA  02446
USA

voice:    617-232-3478
email:    John_L_Bowman@alum.mit.edu
website:  http://JBowman.net   (for CV and papers)

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]