This is the mail archive of the
mailing list for the GCC project.
Need Help Correctly Installing/Configuring GCC Using MinGW MSYS
- From: "Farrah, Yusuf P." <YUSUF dot P dot FARRAH at saic dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 9 Jan 2006 12:05:46 -0500
- Subject: Need Help Correctly Installing/Configuring GCC Using MinGW MSYS
To Whom It May Concern:
I need help either installing properly or configuring my combination of
MinGW combination of MSYS and GCC. ?From the www.mingw.org website and
appropriate mirror sites I down loaded to my PC:
???? gcc version 3.4.2 (mingw-special)
GNU ld version 2.15.91 20040904
MINGW32_NT-5.1 FARRAHY-1 1.0.10(0.46/3/2) 2004-03-15 07:17 i686 unknown
mingw-runtime version 3.9 from ( include/_mingw.h)
w32api version 3.5 from ( include/w32api.h )
PC OS: MS Windows XP Professional Version 2002 Service Pack 2
PC Disk Space: 55 Giga Bytes
PC RAM Space : 1 Giga Byte
The installation appeared to go well.? The MSYS is installed 1st and under
the directory: "C:\msys." ?The rest of the software tools were installed
after that all under directory: "C:\mingw."? Following the "README"
instruction I created a "fstab" file in the directory C:\msys\1.0\etc. I
then tested the installation by creating a small "Hello World" C program in
a file test.c:
int main( char argc, int argv )
??????? printf("\nHellow World\n");
When I did my test compilation I got included the following errors:
$ gcc test.c
collect2: ld returned 1 exit status
The only thing I could find searching the C:\MSYS directory recursively
including all its subdirectories is the library "C:\mingw\libcoldname.a."
My basic questions are:
 Did I make an installation error?
 Did I fail to configure gcc or g++ properly in this environment
(e.g. Not set some default variables for library path.)?
 Is it some combination of the  and ?
 Is this just a known bug with a known work around?
I was able to get the gcc, g++, gdb, binary utilities and the make utility
to work using a Cygwin shell in the past. I thought this would be easier
using the MSYS shell. ?Can someone lend a hand here PLEASE!? Some assistance
would greatly appreciated!
Yusuf P. Farrah