i ve copied the crt2.o and the crtbegin.o to the base project folder AND IT WORKED UNDER WINDOWS VISTA
but nows ld give me this error
-------------- Build: Release in test ---------------
mingw32-gcc.exe -Wall -fexceptions -O2 -IC:\CB\include -IC:\CB\lib\gcc\mingw32\3.4.5\include -IC:\CB\include -c C:\CB\TEST\test\main.c -o C:\CB\TEST\test\.objs\main.o
mingw32-g++.exe -LC:\CB\lib -LC:\CB\lib -o test.exe C:\CB\TEST\test\.objs\main.o -s -v
Using built-in specs.
Configured with: ../gcc-3.4.5/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.5 (mingw special)
ld -Bdynamic -o test.exe -s crt2.o crtbegin.o -LC:\CB\lib -LC:\CB\lib C:\CB\TEST\test\.objs\main.o -lstdc++ -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt crtend.o
ld: cannot find -lgcc
Process terminated with status 1 (0 minutes, 0 seconds)
1 errors, 0 warnings
the crt2.o and crtbegin.o is a bug in mingw