This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/27880] [4.2/4.3 regression] undefined reference to `_Unwind_GetIPInfo'
- From: "rob1weld at aol dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2009 07:32:29 -0000
- Subject: [Bug target/27880] [4.2/4.3 regression] undefined reference to `_Unwind_GetIPInfo'
- References: <bug-27880-50@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #35 from rob1weld at aol dot com 2009-01-06 07:32 -------
(In reply to comment #33)
> 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
Another thread suggested that "gcc" should not be used for ".cc" files as
gcc did not invoke the same mechanisms as g++ does. I tried g++ (instead
of gcc) and it worked correctly on my ".cc" file.
Rob
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27880