what am i doing wrong?

Earnie Boyd earnie_boyd@hotmail.com
Fri Jan 2 09:21:00 GMT 1998

Hi Brandon,

gcc -o hello.exe hello.c

gcc -c hello.c
gcc -o hello.exe hello.o

The Cygnus gnu-win32 version of GCC is to aid in porting UNIX programs 
to WIN32.  You should have a working knowledge of UNIX.  There are some 
who have taken this work and gotten rid of the UNIX layer (see Colin 
Peters' page and Mumit Khan's page).  

The ln command is a "link" command but it is relation to creating 
pointers to files on disk with a different name.  IE: ln hello.c 
goodbye.c would create a pointer file named goodbye.c pointing to 
hello.c.  If you edit goodbye.c you would really be editing hello.c.  
There are two types of links a "hard link" and a "symbolic link".  The 
hard link is not supported on W95,  to use symbolic links you would use 
"ln -s realfile pointerfile".

-        \\||//

Let me point you to:
ftp://ftp.cygnus.com/pub/gnu-win32/latest/           (ftp site)
http://www.cygnus.com/pubs/gnupro/                   (Comercial Page)
http://www.cygnus.com/misc/gnu-win32/                (Project Page)
http://www.cygnus.com/ml/gnu-win32                   (Mail Archives)
http://www.itribe.net/virtunix/winhelp-man-pages/    (HTML Man Pages)
http://www.lexa.ru/sos                               (Sergey Okhapkin)
http://www.fu.is.saga-u.ac.jp/~colin/gcc.html        (Colin Peters)
http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan)

>From: BMullenber <BMullenber@aol.com>
>Date: Fri, 2 Jan 1998 04:52:17 EST
>To: gnu-win32@cygnus.com
>Subject: what am i doing wrong?
>I have really no idea how to link a object file into a exec program or 
>how to run g++. I tried a simple hello program and had no success.  
>know how to link a program and want to help me, i made an obj file 
>another compiler?
>what exec program is the linker, is it ln.exe?
>C:\gnuwin32\b18\H-i386-cygwin32\bin>ln C:\compiler\work\hello.obj
>/GNUWIN32/B18/H-I386~1/BIN/LN.EXE: cannot create hard link 
>ello.obj' to `C:\compiler\work\hello.obj': No such file or directory
>Also, I set the Variables and Path too, is this correct?  I have win95.
>set GCC_EXEC_PREFIX=C:\gnuwin32\b18\H-i386-cygwin32\lib\gcc-lib\
>set TCL_LIBRARY=C:\gnuwin32\b18\tcl\lib\tcl7.6
>set GDBTK_LIBRARY=C:\gnuwin32\b18\share\gdbtcl
>For help on using this list (especially unsubscribing), send a message 
>"gnu-win32-request@cygnus.com" with one line of text: "help".

Get Your Private, Free Email at http://www.hotmail.com
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".

More information about the Cygwin mailing list