Subject: CGAL users discussion list
List archive
[cgal-discuss] Install CGAL in visual studio with error Unable to start program libCGAL-vc120-mt-gd-4.5.lib
Chronological Thread
- From: dangphucbao <>
- To:
- Subject: [cgal-discuss] Install CGAL in visual studio with error Unable to start program libCGAL-vc120-mt-gd-4.5.lib
- Date: Mon, 1 Dec 2014 21:04:49 -0800 (PST)
I have tried to install CGAL, maybe I installed it correctly but I don't know
how to create a project Hello World in VS. When I pasted some lines of code
to file .cpp CGAL project:
#include <iostream>
#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()
{
Point_2 points[5] = { Point_2(0, 0), Point_2(10, 0), Point_2(10, 10),
Point_2(6, 5), Point_2(4, 1) };
Point_2 result[5];
Point_2 *ptr = CGAL::convex_hull_2(points, points + 5, result);
std::cout << ptr - result << " points on the convex hull:" << std::endl;
for (int i = 0; i < ptr - result; i++){
std::cout << result[i] << std::endl;
}
return 0;
}
I built this code with no error, But when I ran this code in Release mode
here the error: Unable to start the program
:'C:\CGAL\lib\Release\libCGAL-vc120-mt-45.lib'
In Debug mode: Unable to start the program
:'C:\CGAL\lib\Debug\libCGAL-vc120-mt-gd-45.lib' Please tell me how to fix
it, thanks.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Install-CGAL-in-visual-studio-with-error-Unable-to-start-program-libCGAL-vc120-mt-gd-4-5-lib-tp4660199.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Install CGAL in visual studio with error Unable to start program libCGAL-vc120-mt-gd-4.5.lib, dangphucbao, 12/02/2014
Archive powered by MHonArc 2.6.18.