This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin 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]

Installing GCC 3.2.3


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/


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