I finally got 4.0.1 built in msys. I must have screwed up my msys/gcc
setup because a clean install of msys and gcc-3.4.1 worked. I started
with a simple test:
main.cpp:
~~~~~~~~~~~~~~~~~~~~~~~~~~
#include <iostream>
int main()
{
cout << "Hello\n";
return 0;
}
then I try and build it:
~~~~~~~~~~~~~~~~~~~~~~~~~~
[EMAIL PROTECTED] /d/tmp/simple$ g++ main.cpp -o main
main.cpp:1:20: error: iostream: No such file or directory
main.cpp: In function 'int main()':
main.cpp:5: error: 'cout' was not declared in this scope
I looked thru in /mingw/include/c++/4.0.1 and iostream exists in that
directory. Is there something I'm missing? Do you need to specify gcc's
include directories explicitly now?
Thank you
Chris
My system details:
WinXP Pro
GCC 3.4.1
Msys
config cmd:
~~~~~~~~~~~~~~~~~~~~~~~~~~
../gcc-4.0.1/configure \
--prefix=/mingw \
--with-gcc \
--with-gnu-ld \
--with-gnu-as \
--enable-threads \
--disable-shared \
--disable-nls \
--enable-languages=c,c++,f95 \
--disable-win32-registry \
--with-gmp=/usr/local/gmp-4.1.4
make cmd:
~~~~~~~~~~~~~~~~~~~~~~~~~~
make \
CFLAGS="-O2 -march=i686 -fomit-frame-pointer" \
CXXFLAGS="-mthreads -O2 -march=i686 -fomit-frame-pointer" \
LIBCFLAGS="-O2" \
LIBCXXFLAGS="-O2 -fno-implicit-templates" \
LDFLAGS="-s" \
bootstrap