[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Mingw-cross-env-list] [BUG] boost: undefined reference to `___asser

From: Tim Mazid
Subject: Re: [Mingw-cross-env-list] [BUG] boost: undefined reference to `___assert_fail'
Date: Sat, 28 May 2011 12:45:50 +1000

> Date: Fri, 27 May 2011 23:11:51 +0200
> From: address@hidden
> Tim Mazid schrieb:
> > I'm using mingw 2.20.
> Just for clarity: I think you meant mingw-cross-env 2.20.

Yes, I did; sorry.

> > Attempting to compile a program which uses boost::serialisation, I get a
> > whole bunch of the following errors:
> >
> > blah.o:/usr/include/boost/serialization/singleton.hpp:131: undefined
> > reference to `___assert_fail'
> > blah.o:/usr/include/boost/serialization/factory.hpp:38: undefined
> > reference to `___assert_fail'
> > more undefined references to `___assert_fail' follow
> >
> >
> > Any known workarounds?
> What programm did you try to compile? (Before sending, you might
> want to reduce this to a minimal test program that triggers the
> problem.)
> What command did you use to compile?

Again, my apologies; I should have provided more details, but it was
getting late by the time I posted.

I've since narrowed the problem down. It's my own program and I'm
using autotools.

The relevant part of configure.ac:

When I do ./configure --host=i686-pc-mingw32, all goes well, and it
locates everything fine; except boost.

Looking in Makefile, I see:
BOOST_CPPFLAGS = -I/usr/include
BOOST_LDFLAGS = -L/usr/lib

Editing these to the appropriate mingw paths results in a successful


() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments

reply via email to

[Prev in Thread] Current Thread [Next in Thread]