Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Trouble with Examples

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Trouble with Examples


Chronological Thread 
  • From: Matthew Denno <>
  • To:
  • Subject: Re: [cgal-discuss] Trouble with Examples
  • Date: Thu, 4 Jun 2009 20:01:11 -0400
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=A6yp7cPalHWLuWwcpXMGDTJ2h+fffuoStxdEuIXL7BtjeJGhqo2Cm71Zlsgx4lhPe+ g1cuE0hf5flpoyp18sFlWUfg2BjcxIuXp6sx1VyCXxN7hRtIE2g9DyGyub0Vn1mQw+QP DFBwg2Sf+KXFT55PYE7gqXsA5XxIrte/8P7RA=

Joachim,

Thanks so much for your help. I did as you suggested and added
"-lCGAL" and "-frounding-math" to the linker and compiler,
respectively, and it built and ran without any errors. Now on to
writing some code.

Matt

On Thu, Jun 4, 2009 at 1:53 PM, Joachim Reichel
<>
wrote:
> Hi,
>
>>>> ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/debian/archive/libcgal-demo_3.4-1_all.deb
>>>> ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/debian/archive/libcgal-dev_3.4-1_i386.deb
>>>> ftp://ftp.mpi-sb.mpg.de/pub/outgoing/CGAL/debian/archive/libcgal3_3.4-1_i386.deb
>>> Note that these packages are for Debian sid, and not for Ubuntu 9.04.
>>> There are good chances that they work, but there might also be strange
>>> problems.
>>
>> Do know of any Ubuntu binaries?  Or do you think it would be best for
>> me to compile the source myself?  I looked at the directions on the
>> CGAL webpage for doing this and I think I could handle it (maybe).
>
> It seems that Ubuntu binaries will appear in karmic. Here is a patch
> http://patches.ubuntu.com/c/cgal/cgal_3.4-4ubuntu1.patch
> See also
> https://launchpad.net/ubuntu/+source/cgal
>
> I would stick with the Debian packages for now. If it does not work out,
> you can still install from the source package.
>
>>> Adding -I/usr/include/CGAL causes a file name lookup problem between
>>> <CGAL/gmpxx.h> from CGAL and <gmpxx.h> from GMP, which results in the
>>> shown error messages.
>>
>> Okay, that makes sense.  Actually, I wasn't sure about adding
>> "/usr/include/CGAL" to the includes, so I tried it both ways.  I get a
>> different set of errors when I don't include it.  They are included at
>> the bottom of this message.  Actually, as I look at it now, it appears
>> that it finishes building this way, but still has problems.
> [...]
>> make all
>> Building file: ../src/testing.cpp
>> Invoking: GCC C++ Compiler
>> g++ -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d"
>> -MT"src/testing.d" -o"src/testing.o" "../src/testing.cpp"
>> Finished building: ../src/testing.cpp
>>
>> Building target: CGALcpp2
>> Invoking: GCC C++ Linker
>> g++  -o"CGALcpp2"  ./src/testing.o
>
> You need to link the executable with the CGAL library. "-lCGAL" should
> be sufficient for this example, but for larger programs you might need
> to add some of the other CGAL libraries or 3rd party libraries as well.
>
> And "-frounding-math" is missing in the compile command.
>
> Joachim
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>



Archive powered by MHonArc 2.6.16.

Top of Page