Re: [AD] Static linking requires libstdc++ with mingw?

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On Thu, 2009-01-08 at 10:27 -0700, Thomas Fjellstrom wrote:
> On January 8, 2009, Trent Gamblin wrote:
> >
> > The warnings aren't because of your DX, it happens no matter what. I don't
> > know what the problem there is. I get it when linking static A4 too. It's
> > safe to ignore them though. But needing to link in libstdc++ is a bit
> > odd... that could be something to do with your mingw setup, since I've
> > never seen that or heard of anyone else seeing it. It wouldn't hurt I
> > suppose to explicitly link it, but I'm wondering if there isn't something
> > else at fault. What version of gcc/g++ do you have? What packages did you
> > install?

$ gcc --version
gcc.exe (GCC) 4.3.0 20080305 (alpha-testing) mingw-20080502

I downloaded the newest version of all packages from mingw's SF
repository a few weeks ago, plus the DX9 from your site.

> 
> AFAIK this is a known issue and was recently fixed wasn't it? Or was supposedly 
> fixed :o

Yes, I thought I fixed it (added -lstdc++ for audio examples), but I
didn't. I'm only testing this in vbox which is a pain to use so I'm not
usually rebuilding all examples and thought only audio examples need it,
but all do apparently.

It's just strange that I'm the only one who gets this, and I'm not sure
it is supposed to be needed, or if compiling the library already should
pull in all the required C++ stuff so a C end-user wouldn't need to link
against C++ as well..

-- 
Elias Pschernig <elias@xxxxxxxxxx>





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/