Subject: CGAL users discussion list
List archive
- 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
- [cgal-discuss] error in compile program in linux, mahdavi, 04/12/2010
- Re: [cgal-discuss] error in compile program in linux, Joachim Reichel, 04/12/2010
- [cgal-discuss] Re: error in compile program in linux, mahdavi, 04/12/2010
- Re: [cgal-discuss] error in compile program in linux, Joachim Reichel, 04/12/2010
Archive powered by MHonArc 2.6.16.