This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/55696] Error linking using gfortran with C++ code compiled with -std=c++11
- From: "kyle.niemeyer at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 14 Dec 2012 21:25:30 +0000
- Subject: [Bug libstdc++/55696] Error linking using gfortran with C++ code compiled with -std=c++11
- Auto-submitted: auto-generated
- References: <bug-55696-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55696
--- Comment #4 from Kyle <kyle.niemeyer at gmail dot com> 2012-12-14 21:25:30 UTC ---
It looks like you were right. It must have been linking to the system
libstdc++, rather than the one associated with this gcc.
When I link using:
gfortran -o prog main.o sub.o /usr/local/Cellar/gcc/4.7.2/gcc/lib/libstdc++.a
it gives no error. My fault, thanks!