Skip to Content.
Sympa Menu

cgal-discuss - Problem with the installation of CGAL in Visual Studio 2005

Subject: CGAL users discussion list

List archive

Problem with the installation of CGAL in Visual Studio 2005


Chronological Thread 
  • From:
  • To:
  • Subject: Problem with the installation of CGAL in Visual Studio 2005
  • Date: Fri, 1 Jun 2007 18:25:44 +0200

Hello,

I've downloaded the CGAL-3.2.1-Setup.exe and boost and installed them.

My IDE is Microsoft Visual Studio 2005 and my parameters are in the
tools->options->VC++ Directories :

-include files : C:\boost\boost_1_34_0\ and $(CGALROOT)\include and
$(CGALROOT)\include\CGAL\config\msvc7

-library files : C:\boost\boost_1_34_0\libs and $(CGALROOT)\lib\msvc7


I tried the example below in a .cpp file :

// file: examples/Triangulation_2/terrain.C

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Triangulation_euclidean_traits_xy_3.h>
#include <CGAL/Delaunay_triangulation_2.h>

#include <fstream>

struct K : CGAL::Exact_predicates_inexact_constructions_kernel {};

typedef CGAL::Triangulation_euclidean_traits_xy_3<K> Gt;
typedef CGAL::Delaunay_triangulation_2<Gt> Delaunay;

typedef K::Point_3 Point;

int main()
{
std::ifstream in("terrain.cin");
std::istream_iterator<Point> begin(in);
std::istream_iterator<Point> end;

Delaunay dt;
dt.insert(begin, end);
std::cout << dt.number_of_vertices() << std::endl;


return 0;
}




And I've got 5 link errors ...Look at 2 of them :

Error 9 error LNK2001: unresolved external symbol "public: static int
CGAL::IO::mode"
(?mode@IO@CGAL@@2HA)
test.obj


Error 8 error LNK2019: unresolved external symbol "public: __thiscall
CGAL::Random::Random(void)"
(??0Random@CGAL@@QAE@XZ)
referenced in function "public: __thiscall CGAL::Triangulation_2<class
CGAL::Etxy3<struct K>,class CGAL::Tds2<class CGAL::Tvb<class
CGAL::Etxy3<struct K>,class CGAL::Tdsvb<void> >,class CGAL::Tdsfb<void> >
>::Triangulation_2<class CGAL::Etxy3<struct K>,class CGAL::Tds2<class
CGAL::Tvb<class CGAL::Etxy3<struct K>,class CGAL::Tdsvb<void> >,class
CGAL::Tdsfb<void> > >(class CGAL::Etxy3<struct K> const &)"
(??0?$Triangulation_2@V?$Etxy3@UK@@@CGAL@@V?$Tds2@V?$Tvb@V?$Etxy3@UK@@@CGAL@@V?$Tdsvb@X@2@@CGAL@@V?$Tdsfb@X@2@@2@@CGAL@@QAE@ABV?$Etxy3@UK@@@1@@Z)
test.obj



Do you think I've missed something in the installation or the configuration ?


I didn't install GMP and MPFR because they are optional.


By advance, thank you for the answers,

Yours sincerely.



Archive powered by MHonArc 2.6.16.

Top of Page