From: Brian D. <br...@de...> - 2007-11-03 20:50:42
|
Randy Reed wrote: > #COMPILE DIRECTIVE FOR THE MAIN > /cygdrive/d/Dev-Cpp/bin/gcc.exe -mwindows -mno-cygwin -mms-bitfields > -DHAVE_CONFIG_H -I"d:/Dev-Cpp/INCLUDE/GDK" -I"d:/Dev-Cpp/include/gtk" > -c vlgc_main.c -Bstatic -o vlgc_main.o -Bstatic and -mwindows when compiling (-c) don't make any sense. Those are only relevant when linking. (And -Bstatic is a linker flag anyway, not a compiler flag, so if anything it would need to be -Wl,-Bstatic. But gcc does this automatically when you specify just plain -static.) > #COMPILE DIRECTIVE FOR LINKAGE > /cygdrive/d/Dev-Cpp/bin/gcc.exe -mwindows -mno-cygwin -mms-bitfields > -DHAVE_CONFIG_H --static -static -Wl,-static \ > -I"d:/Dev-Cpp/INCLUDE/GDK" -I"d:/Dev-Cpp/include/gtk" \ > vlgc_main.o vlgc_popups.o ../../AMEgtk/src/menubar.o\ > -L"lib" "d:/Dev-Cpp/Lib/libz.a" > "d:/Dev-Cpp/Lib/libglib-2.0.dll.a" "d:/Dev-Cpp/Lib/libgtk.dll.a" > "d:/Dev-Cpp/Lib/libgdk.dll.a" -o ../bin/voodoolabGS.exe You're linking against import libraries (.dll.a), so of course it's going to link the DLLs -- you've given it no choice. Those are not static versions of the libraries, they are import libraries. Also, "--static -static -Wl,-static" just looks like desperation. You only need "-static". Moreover, -I during linking is meaningless, since the preprocessor does not run. You should be able to just specify simply: -static -L"d:/Dev-Cpp/Lib/" -lz -lglib-2.0 -lgtk -lgdk Brian |