[CMake] Windows GCC 4.4 with shared libstdc++
Gregory Peele ARA/CFD
gpeele at ara.com
Mon Jul 6 18:13:18 EDT 2009
Hey all,
I recently downloaded MinGW GCC 4.4 and have been toying around with it. I've been trying to get the shared libstdc++ support working under CMake 2.6.3. Anyone ever tried this before? Currently I'm having two issues - multiply defined symbols coming from libstdc++.a and libstdc++_s.a (presumably because the compiler is implicitly linking to the first and I'm also specifying linking to the second) and undefined references to std::exception default constructor.
According to MinGW documentation, only thing that should be necessary is adding -D_GLIBCXX_DLL for all input files and linking against libstdc++_s.a. The same project builds correctly when built with static libstdc++. Any thoughts?
Gregory Peele
Applied Research Associates, Inc.
More information about the CMake
mailing list