|
Boost Users : |
From: Vladimir Prus (ghost_at_[hidden])
Date: 2008-04-19 06:46:07
Nicholas Clark wrote:
> I just received a huge application that uses boost for just about
> everything. I am receiving a debug assertion when trying to add program
> descriptions. To help isolate the error I have built a very simple example
> and am still getting the crash. For reference I am using boost 1.32. When
> I moved to any of the newer versions of boost this specific error goes away
> but I rack up a list of compiler errors a mile long. I am trying to fix
> this issue without moving to a newer version of boost because this is a
> legacy application and we have a minimum amount of time/budget.
>
>
>
> The last compiled version delivered by the old contractor does not have this
> error. This previous version was built with VS71 but we are using VS80
> (with SP2) . could this be the difference?
>
>
>
> #include <boost/program_options.hpp>
>
>
>
> namespace po = boost::program_options;
>
>
>
> using namespace std;
>
> using namespace boost::program_options;
>
>
>
> int _tmain(int argc, _TCHAR* argv[])
>
> {
>
> po::options_description desc("Allowed options");
>
> desc.add_options()
>
> ("help,H", "produce help message")
>
> ;
>
> return 0;
>
> }
>
>
>
> Again a debug assert is triggered when calling 'add_options' with boost 1.32
> but not in newer version using VS80 with SP2.
1.32 is way old, and basically unsupported. OTOH, the code above does not seem
to use anything advanced, so you should be able to see where the assertion is,
and figure out what it's complaining about.
- Volodya
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net