Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] error in compile program in linux

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] error in compile program in linux


Chronological Thread 
  • From: Joachim Reichel <>
  • To:
  • Subject: Re: [cgal-discuss] error in compile program in linux
  • Date: Mon, 12 Apr 2010 20:51:49 +0200

Hi,

> hi,
> my program use CGAL::Exact_predicates_exact_constructions_kernel_with_sqrt
> , type g++ main.cc -lCGAL in command in run command ,and follow message
> is occur:
> //////////////////////////////////////////////////////////////////////////////////////////
> /tmp/ccgEbXXZ.o: In function `CORE::AddSubRep<CORE::Sub>::op() const':
> main.cc:(.text._ZNK4CORE9AddSubRepINS_3SubEE2opEv[CORE::AddSubRep<CORE::Sub>::op()
> const]+0x17): undefined reference to `CORE::Sub::name'
[...]
> //////////////////////////////////////////////////////////////////////////////////////////////////////////////////
> please help me , thank and best regard.

you are using CORE, hence you have to link at least with libCGAL_Core.so
(-lCGAL_Core) as well.

Or use the script "cgal_create_cmake_script" and have a look at the generated
compiler/linker command.

Joachim



Archive powered by MHonArc 2.6.16.

Top of Page