Installing GCC 3.2.3

Mikael Åsberg mikas493@student.liu.se
Wed May 7 12:16:00 GMT 2003


Hello, I am trying to install GCC 3.2.3 on the latest Cygwin 1.3.22. Here
are my installation steps:
$ tar xvzf gcc-3.2.3.tar.gz
$ mkdir obj
$ cd obj
$
../gcc-3.2.3/./configure --prefix=/usr/local/gcc-3.2.3/ --exec-prefix=/usr/l
ocal/gcc-3.2.3/
$ make
$ make install
These steps completed without any errors. When they were finished, I did:
$ gcc --version
The output was (as expected):
gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
So I added /usr/local/gcc-3.2.3/bin to the PATH (/etc/profile), and I added
it first so that the executables for GCC 3.2.3 are found before those of GCC
3.2.

Now to my remaning problem. When I try to build c++ programs I have to
specify -L /usr/local/gcc-3.2.3/lib for the program to link correctly. How
do I add /usr/local/gcc-3.2.3/lib/ to the library path? In Mandrake, I would
edit /etc/ld.so.conf but Cygwin doesn't have such a file..

/ Mikael



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list