| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Cygwin |
Mon 2003-08-11 10:51, Bill Birrell (2:25/200) wrote to All:
BB> Help me out here, guys! I am baffled and bewildered. Cygwin (which
BB> I've just downloaded) sets up a unix like environment on a windows
BB> machine (presumably to allow emacs and cc to run normally.)
BB> Problem 1 - can't find cc (not in /bin not in /usr/bin).
Use gcc for C or g++ for C++.
BB> Problem 2 - the keyboard appears to be set up for US use and I've
BB> no idea how to change it to the keys on my keyboard. It's a problem
BB> because the shell assumes I have at least one more line on my
BB> screen than I have, and I can't find the 'Ý' symbol to use a pipe
BB> to pipe the output though more. (can't even find more). This even
BB> though I deliberately downloaded it from the UK mirror site.
Which shell?
BB> Problem 3 - can't find man to do man -k anything. The man pages are
BB> all there, though.
bash-2.05b$ man -w
/usr/X11R6/man:/usr/man
These are also listed in /etc/man.config, which also lists some other
paths, but they don't exist in the file system so I think man just ignores
those.
bash-2.05b$ ls -l /usr/man/man1/ls.*
-rw-r--r-- 1 ozzmosis None 5492 Jun 16 2001 /usr/man/man1/ls.1
bash-2.05b$ man -w ls
/usr/man/man1/ls.1
BB> Problem 4 - why would anybody choose to use a unix emulator on
BB> Windows when unix itself is available? Windows is slower by a
BB> factor of ten than unix, or even linux, and an emulator compounds
BB> that felony by at least a factor of three. I would regard this as a
BB> deal-breaker myself
It's not a UNIX emulator; you can't run UNIX binaries with it. It just
emulates some common UNIX APIs at the source code level so you can port
UNIX apps to Windows for those people who can't run UNIX for whatever
reason.
BB> Problem 5 - I have forgotten a whole lot of unix use and I am not
BB> anxious because of disk space to download reams of documentation
BB> just to compile Hello.c.
bash-2.05b$ cd ~
bash-2.05b$ pwd
/home/ozzmosis
bash-2.05b$ mkdir src
bash-2.05b$ cd src
bash-2.05b$ mkdir hello
bash-2.05b$ cd hello
bash-2.05b$ cat > hello.c # or use your favorite editor (preferably one
# that uses UNIX text format)
#include
int main(void)
{
puts("Hello world.");
return 0;
}
bash-2.05b$ gcc -W -Wall -s -o hello hello.c # add -g and remove -s if
# you want to debug with gdb
bash-2.05b$ ./hello # or ./hello.exe
Hello world.
bash-2.05b$ ls -l
total 11
-rw-r--r-- 1 ozzmosis None 84 Aug 13 03:00 hello.c
-rwxr-xr-x 1 ozzmosis None 10240 Aug 13 03:01 hello.exe
bash-2.05b$ ls -l hello
-rwxr-xr-x 1 ozzmosis None 10240 Aug 13 03:01 hello
You can also use the -mno-cygwin option with gcc/g++ to compile your
program as a standard Win32 program that uses msvcrt.dll (instead of a
Cygwin program that requires cygwin1.dll), but doing this restricts the
number of libraries you may use, eg. from memory you can't use -mno-cygwin
and -lncurses.
-- mail{at}ozzmosis.com
--- timEd/FreeBSD 1.11.b1
* Origin: Blizzard of Ozz, Mt Eliza, Melbourne, Australia (3:633/267)SEEN-BY: 633/267 270 @PATH: 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.