Subject: CGAL users discussion list
List archive
- From: Laurent Rineau <>
- To:
- Subject: Re: [cgal-discuss] problem -- sorry new user-- compiler
- Date: Mon, 16 Jul 2007 11:07:24 +0200
- Organization: Inria, Sophia Antipolis, FRANCE
On Saturday 14 July 2007 21:40:23
wrote:
> Dear cgal discussion group,
>
> I try to compile my first cgal program under MAC os x and I get the
> following error:
>
> peter-noels-computer:~/Documents/c++ projects/region_define pbnoel$ make
> g++ -c -I /usr/local/CGAL-3.3/include -Wall -frounding-math
> '-I/usr/local/CGAL-3.3/include/CGAL/config/i386_Darwin-8.10_g++-4.0.1'
> '-I/usr/local/CGAL-3.3/include' -I/usr/local/boost_1_34_0
> -I/usr/X11R6/include -DCGAL_USE_F2C -L
> /usr/local/CGAL-3.3/lib/i386_Darwin-8.10_g++-4.0.1/libCGAL.a
> sweep_line.cpp g++ -o region define_region.o ImageIO.o ImageGrayscale.o
> sweep_line.o /usr/bin/ld: Undefined symbols:
> CGAL::assertion_fail(char const*, char const*, int, char const*)
> CGAL::precondition_fail(char const*, char const*, int, char const*)
> collect2: ld returned 1 exit status
> make: *** [region] Error 1
Can you show us your makefile? It does not seem right. At the link stage, you
should link with libCGAL, at least. It seems that you add it to the compile
stage, instead. Where does "ImageIO.o" comme from?
--
Laurent Rineau
INRIA - Sophia Antipolis
BP 93, 2004 Route des Lucioles
06902 Sophia Antipolis Cedex FRANCE
- problem -- sorry new user-- compiler, pbnoel, 07/14/2007
- Re: [cgal-discuss] problem -- sorry new user-- compiler, Laurent Rineau, 07/16/2007
Archive powered by MHonArc 2.6.16.