Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] release ok but get wrong in debug

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] release ok but get wrong in debug


Chronological Thread 
  • From: Philipp Moeller <>
  • To:
  • Subject: Re: [cgal-discuss] release ok but get wrong in debug
  • Date: Sun, 05 Aug 2012 22:48:11 +0200
  • Organization: GeometryFactory

"番茄骑士"
<>
writes:

> vs 2005
> boost 1_40 by boostpro
> cgal 3.6

Is there a specific reason why you are using an ancient, bug-ridden
compiler? CGAL 3.6 was the last release to support VS2005, but it will
be hard to find anyone that can still help you figure out things with
this set-up.

> this program both debug and release ok:
> #include <iostream>
> //#include <boost/format.hpp>
> #include <QtGui>
> #include <CGAL/Qt/GraphicsViewNavigation.h>
> #include <QLineF>
> #include <QRectF>
> int main(int argc, char **argv)
> {
> QApplication app(argc, argv);
> QGraphicsScene scene;
> scene.setSceneRect(0,0, 100, 100);
> scene.addRect(QRectF(0,0, 100, 100), QPen(QColor(255,0,0)));
> scene.addLine(QLineF(0,0, 100, 100));
> scene.addLine(QLineF(0,100, 100, 0));
> QGraphicsView* view = new QGraphicsView(&scene);
> CGAL::Qt::GraphicsViewNavigation navigation;
> view->installEventFilter(&navigation);
> view->viewport()->installEventFilter(&navigation);
> view->setRenderHint(QPainter::Antialiasing);
> view->show();
> return app.exec();
> }
>
>
> but others get wrong,for example:
> #include <iostream>
> #include <iterator>
> #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
> #include <CGAL/convex_hull_2.h>
> typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
> typedef K::Point_2 Point_2;
> int main()
> {
> std::istream_iterator< Point_2 > input_begin( std::cin );
> std::istream_iterator< Point_2 > input_end;
> std::ostream_iterator< Point_2 > output( std::cout, "\n" );
> CGAL::convex_hull_2( input_begin, input_end, output );
> return 0;
> }
> the debug and release generate both ok,
> the release runs ok.
> but the debug shows:
>
> it shows at most examples.

Did something get stripped out of your message here? This example
shouldn't show anything unless you enter some input.

A better description of your problem would be helpful.

> so what could be wrong ?
> can anyone help me?
> the cgal is so sophisticate, i can't find where is wrong.



Archive powered by MHonArc 2.6.18.

Top of Page