Skip to Content.
Sympa Menu

cgal-discuss - RE: [cgal-discuss] question on Installation on unix

Subject: CGAL users discussion list

List archive

RE: [cgal-discuss] question on Installation on unix


Chronological Thread 
  • From: "avanindra" <>
  • To: <>
  • Subject: RE: [cgal-discuss] question on Installation on unix
  • Date: Sat, 7 Feb 2009 06:23:44 +0530
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=t7uUrGpJIxjz/AyUvvTqp2o4Z92vuivGR5OKg1cGo1All8Ho6RLqS9j5n3RSp3gYqe lfHsjzxr9OFQcn1X2av6xgeueRNZIMf6HWZmrhdmjtNx7kvhtt22672nU4x0vgS9VyiM A1H5XQFpphRVy/7CMLzRXm2P//tG1PlcrbuWQ=

Hi,

Which linux are you using? This error may also occur when you just forgot to
link libraries and just included the include directories.


-----Original Message-----
From:


[mailto:]

Sent: Saturday, February 07, 2009 3:59 AM
To:

Subject: [cgal-discuss] question on Installation on unix

Hi all,

I just have installed the CGAL on my machine, but it doesn't seem to be
working.

I did everything I was told to do on installation manual, and it seems that
there's no problem recognizing the libraries. I think I have to change some
environment, but I have no idea on what to change.

I have tried the following sample code;
examples/Convex_hull_2/ch_example_from_cin_to_cout.cpp
which is

=============
#include <CGAL/Cartesian.h>
#include <CGAL/ch_graham_andrew.h>

typedef CGAL::Point_2<CGAL::Cartesian<double> > Point_2;

int main()
{
CGAL::set_ascii_mode(std::cin);
CGAL::set_ascii_mode(std::cout);
std::istream_iterator< Point_2 > in_start( std::cin );
std::istream_iterator< Point_2 > in_end;
std::ostream_iterator< Point_2 > out( std::cout, "\n" );
CGAL::ch_graham_andrew( in_start, in_end, out );
return 0;
}
=============
I once commented out all lines in the main function except 'return 0'. And
it
compiled.
But if I comment out all but the first and the last line in the main
function,
it shows the following error.

==========================
/tmp/ccDDajNZ.o: In function `main':
conv.cpp:(.text+0x8b): undefined reference to
`CGAL::set_ascii_mode(std::basic_ios<char, std::char_traits<char> >&)'
collect2: ld returned 1 exit status
=========================

Any help?

Thanks
--
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