Did some-one managed to build any gcc-2.95.*-* '-shared' aware version under cygwin ?

benoit Rolland benoit.rolland@free.fr
Tue Nov 8 02:52:00 GMT 2005


Did some-one managed to build any gcc-2.95.*-* '-shared' aware version 
under cygwin ?
If yes, would you mind to help me reproduce your feat by telling me the 
build sequence you used and where to find the sources ?

Looking for a cygwin gcc version able to both deal with -shared 
libraries and old fashioned headers includes (like iostream.h) , 
I found one on the mingw site gcc-2.95.3-8 (2.95.3-8-20020922-1-src.tar.gz),
and built it under cygwin. 
(I need cygwin because of the use of ksh I have)
Here is the used build sequence: 
mkdir /usr/local/gcc-2.95.3-8  
cd /usr/local/gcc-2.95.3-8  
$HOME/gccSrc/gcc-2.95.3-8 /configure --prefix=/usr/local/gcc-2.95.3-8 
--enable-multilib --enable-shared --enable-threads=posix 
make bootstrap 
make install 
 
But headers seems to be badly included by default: 
Compiling main.cpp  (gcc -c main.cpp)
main.cpp: In function `int main(int, char **)': 
main.cpp:19: `cout' undeclared (first use this function) 
main.cpp:19: (Each undeclared identifier is reported only once 
main.cpp:19: for each function it appears in.) 
main.cpp:19: `endl' undeclared (first use this function)

(With my gcc 2.95.3, main.o is created with no error.)
 
Would any one knows how to have gcc use the right default includes (and 
libs) ? 

Thanks!



More information about the Gcc-help mailing list