Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] compiler error - undefined reference to `CGAL::assertion_fail(char const*, char const*, int, char const*)'

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] compiler error - undefined reference to `CGAL::assertion_fail(char const*, char const*, int, char const*)'


Chronological Thread 
  • From: Ramin H <>
  • To:
  • Subject: Re: [cgal-discuss] compiler error - undefined reference to `CGAL::assertion_fail(char const*, char const*, int, char const*)'
  • Date: Fri, 4 Dec 2009 09:21:42 -0500
  • 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=w0v5/9PwZFHsrMRcWm40SMU/WEouWPMsomKDVarGvPgYmKtQKWv/TnSCY+gkDQ4V85 XWEGXx+6P9a8KGNtj1lQ5CBEN6932SL0245QtIx7bqdM9kMaSLnyGjsEYk5vrJ2/F4Ln 8sYLcjIi9dO0wqEqiLp6VKVrpWP1BIo3V8A58=

Thank you very much. I added LIBS += -lCGAL -lCGAL_Core to the end of
.pro file and that solved the problem.

I thought LIBS += -L"/home/ramin/CGAL-3.5/lib" would be enough and
linker will find what it needs in that folder. Does LIBS += -lCGAL
-lCGAL_Core tell linker to use specific libraries in that folder?

Also, it compiled without the -frounding-math flag.

Now let's get some work done.
Thanks again.
-Ramin

On Fri, Dec 4, 2009 at 9:01 AM, Laurent Rineau (GeometryFactory)
<>
wrote:
> On Friday 04 December 2009 14:43:35 Ramin H wrote:
>> Matthew,
>> Thank you for your help. I also followed this thread
>> (https://lists-sop.inria.fr/sympa/arc/cgal-discuss/2009-06/msg00014.html)
>> where you asked a similar question.
>>
>> I have compiled CGAL3.5 myself. (Ubuntu does not have a binary for
>> this version and I need the latest version for some features).
>> Location of CGAL is in my home directory /home/ramin/CGAL-3.5
>>
>> This is how the .pro file looks like:
>> ---- begin: nef.pro ----
>> SOURCES       =  main.cpp
>> QT           += opengl
>> QT           += xml
>> INCLUDEPATH  += "/usr/include"
>> INCLUDEPATH  += "/home/ramin/CGAL-3.5/include"
>> LIBS  += -L"/usr/lib"
>> LIBS  += -L"/home/ramin/CGAL-3.5/lib"
>> ---- end: nef.pro
>
> You probably need the following:
>
> LIBS += -lCGAL -lCGAL_Core
>
> --
> Laurent Rineau, PhD
> R&D Engineer at GeometryFactory           http://www.geometryfactory.com/
> Release Manager of the CGAL Project       http://www.cgal.org/
>
> --
> 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