With "gcc version 4.4.0 20090102" on i386-pc-solaris2.11 I'm getting:
# gcc -v -o test_gmp_1 test_gmp_1.cc -lgmp -lstdc++ /usr/local/lib/gcc/i386-pc-solaris2.11/4.4.0/../../../libstdc++.so: undefined reference to `_Unwind_GetIPInfo@GCC_4.2.0' collect2: ld returned 1 exit status
With "gcc version 4.4.0 20090102" on i386-pc-solaris2.11 I'm getting:
# gcc -v -o test_gmp_1 test_gmp_1.cc -lgmp -lstdc++ lib/gcc/ i386-pc- solaris2. 11/4.4. 0/../.. /../libstdc+ +.so: undefined reference to `_Unwind_ GetIPInfo@ GCC_4.2. 0'
/usr/local/
collect2: ld returned 1 exit status