From: <hen...@pp...> - 2006-08-30 14:24:33
|
Earnie Boyd wrote: > > crt2.o should exist in d:\mingw\lib directory; does it? We need a > little more information from you; create a minimal helloworld package > and give the output of building it with ``gcc -v -ohelloworld > helloworld.c''. > > Earnie Boyd > crt2.o does not exist in the d:\mingw\lib directory or any where else in the d:\mingw tree. An attempt to compile minimal hello world app, like this: // hello.c #include <stdio.h> int main() { printf("Hello world!\n"); return 0; } with "gcc -v hello.c" generates: Reading specs from D:/mingw/bin/../lib/gcc/mingw32/3.4.2/specs Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mi ngw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shar ed --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-de bug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug Thread model: win32 gcc version 3.4.2 (mingw-special) D:/mingw/bin/../libexec/gcc/mingw32/3.4.2/cc1.exe -quiet -v -iprefix D:\mingw\bin/../lib/gcc/mingw32/3.4.2/ hello.c -quiet -dumpbase hello.c -auxbase hello -version -o C:\DOCUME~1\HENRIH~1\LOCALS~1\Temp/cceyaaaa.s ignoring nonexistent directory "D:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/include" ignoring nonexistent directory "/mingw/lib/gcc/mingw32/3.4.2/../../../../mingw32/include" #include "..." search starts here: #include <...> search starts here: D:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../include D:/mingw/bin/../lib/gcc/mingw32/3.4.2/include /mingw/lib/gcc/mingw32/3.4.2/../../../../include /mingw/include /mingw/lib/gcc/mingw32/3.4.2/include /mingw/include End of search list. GNU C version 3.4.2 (mingw-special) (mingw32) compiled by GNU C version 3.4.2 (mingw-special). GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=65469 D:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../../../mingw32/bin/as.exe -o C:\DOCUME~1\HENRIH~1\LOCALS~1\Temp/cciWaaaa. o C:\DOCUME~1\HENRIH~1\LOCALS~1\Temp/cceyaaaa.s D:/mingw/bin/../libexec/gcc/mingw32/3.4.2/collect2.exe -Bdynamic crt2.o D:/mingw/bin/../lib/gcc/mingw32/3.4.2/crtbeg in.o -LD:/mingw/bin/../lib/gcc/mingw32/3.4.2 -LD:/mingw/bin/../lib/gcc -L/mingw/lib/gcc/mingw32/3.4.2 -LD:/mingw/bin/ ../lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -L/mingw/lib/gcc/mingw32/3.4.2/../../../../mingw32/lib -L/mingw/lib -LD:/mingw/bin/../lib/gcc/mingw32/3.4.2/../../.. -L/mingw/lib/gcc/mingw32/3.4.2/../../.. C:\DOCUME~1\HENRIH~1\LOCALS~ 1\Temp/cciWaaaa.o -lmingw32 -lgcc -lmoldname -lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmingw32 -l gcc -lmoldname -lmingwex -lmsvcrt D:/mingw/bin/../lib/gcc/mingw32/3.4.2/crtend.o D:\mingw\bin\..\lib\gcc\mingw32\3.4.2\..\..\..\..\mingw32\bin\ld.exe: crt2.o: No such file: No such file or directory collect2: ld returned 1 exit status |