This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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:

	MSYS-1.0.10.exe
	gcc-core-3.4.2-20040916-1.tar.gz
	gcc-g++-3.4.2-20040916-1.tar.gz
	mingw-runtime-3.9.tar.gz
	mingw-utils-0.3.tar.gz
	w32api-3.5.tar.gz
	binutils-2.15.91-20040904-1.tar.gz
	gdb-5.2.1-1.exe
	mingw32-make-3.80.0-3.exe

???? 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:

	#include <stdio.h>


	int main( char argc[], int argv )
	{
??????? printf("\nHellow World\n");

??????? return(0);
	}

When I did my test compilation I got included the following errors:

	$ gcc test.c
	
c:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: cannot
find -lmoldname
	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:

	[1] Did I make an installation error?

	[2] Did I fail to configure gcc or g++ properly in this environment
(e.g. Not set some default variables for library path.)?

	[3] Is it some combination of the [1] and [2]?

	[4] 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!

Thank you,


______________________________________
Yusuf P. Farrah
SAIC
Tel: 732-933-3603
Email: yusuf.p.farrah@saic.com 
 



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