Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

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


Chronological Thread 
  • From: "????????" <>
  • To: "cgal-discuss" <>
  • Subject: [cgal-discuss] release ok but get wrong in debug
  • Date: Sun, 5 Aug 2012 14:05:06 +0800

vs 2005
boost 1_40 by boostpro
cgal 3.6
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.
so what could be wrong ?
can anyone help me?
the cgal is so sophisticate, i can't find where is wrong.
 

Attachment:
Description: JPEG image




Archive powered by MHonArc 2.6.18.

Top of Page