Hi, All The "-fvisibility=hidden" option is added from gcc 4.0. But seems it can't be used in Mingw+Msys. I have installed Gcc 4.1.1 following the way posted here: http://gcc.gnu.org/ml/gcc-help/2006-09/msg00000.html But I found the "-fvisibility=hidden" is not included in the GCC4.1.1 build, if you use the option to compile a file, it says: warning: visibility attribute not supported in this configuration; ignored So, seems some new features is not included in while installing the gcc 4.1.1. As I check, the /gcc-4.1.1/gcc/configure doesn¡¯t include the visibility option while it checks the ld.exe version. If I change the configure file to add the visibility option, an error will ocurr in compiling the GCC: ./xgcc -B./ -B/mingw/mingw32/bin/ -isystem /mingw/mingw32/include -isystem /mingw/mingw32/sys-include -L/gcc-work/build/gcc/gcc/../ld -O2 -I../../../source/gcc-4.1.1/gcc/../winsup/w32api/include -O2 -O2 -fomit-frame-pointer -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I. -I. -I../../../source/gcc-4.1.1/gcc -I../../../source/gcc-4.1.1/gcc/. -I../../../source/gcc-4.1.1/gcc/../include -I../../../source/gcc-4.1.1/gcc/../libcpp/include -DL_gcov -c ../../../source/gcc-4.1.1/gcc/libgcov.c -o libgcc/./_gcov.o ../../Temp/cczuk9Ij.s: Assembler messages: ../../Temp/cczuk9Ij.s:241: Error: unknown pseudo-op: `.hidden' The ld.exe is from binutils package, as I check the verison, seems the latest version is 2.17.50 which is from 2006.08.14. I don't know if the mingw don't add the feature, or it is GCC issues. Any one has idea about it? Thanks! Shaohua ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC