Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Compile error with just #includes

Subject: CGAL users discussion list

List archive

[cgal-discuss] Compile error with just #includes


Chronological Thread 
  • From: moogroo <>
  • To:
  • Subject: [cgal-discuss] Compile error with just #includes
  • Date: Wed, 15 Aug 2012 07:38:41 -0700 (PDT)

Hello,

I'm new to CGAL and have just installed the libraries.
I'm trying to compile a basic test program, but I can't get
my program to compile, even with only a single CGAL header file
included (CGAL/Cartesian.h) and an empty main function.

my operating system is ubuntu 12.04, and I have made sure
that all libraries and shared object files are present in my
/usr folder after the full installation using cmake.

The output I get from the compiler is:

/tmp/ccJ4jLhv.o: In function
`CGAL::Interval_nt<false>::Test_runtime_rounding_modes::Test_runtime_rounding_modes()':
sphere.cpp:(.text._ZN4CGAL11Interval_ntILb0EE27Test_runtime_rounding_modesC2Ev[_ZN4CGAL11Interval_ntILb0EE27Test_runtime_rounding_modesC5Ev]+0x94):
undefined reference to `CGAL::assertion_fail(char const*, char const*, int,
char const*)'
sphere.cpp:(.text._ZN4CGAL11Interval_ntILb0EE27Test_runtime_rounding_modesC2Ev[_ZN4CGAL11Interval_ntILb0EE27Test_runtime_rounding_modesC5Ev]+0x11b):
undefined reference to `CGAL::assertion_fail(char const*, char const*, int,
char const*)'
/tmp/ccJ4jLhv.o: In function
`CGAL::Interval_nt<true>::Test_runtime_rounding_modes::Test_runtime_rounding_modes()':
sphere.cpp:(.text._ZN4CGAL11Interval_ntILb1EE27Test_runtime_rounding_modesC2Ev[_ZN4CGAL11Interval_ntILb1EE27Test_runtime_rounding_modesC5Ev]+0x94):
undefined reference to `CGAL::assertion_fail(char const*, char const*, int,
char const*)'
sphere.cpp:(.text._ZN4CGAL11Interval_ntILb1EE27Test_runtime_rounding_modesC2Ev[_ZN4CGAL11Interval_ntILb1EE27Test_runtime_rounding_modesC5Ev]+0x11b):
undefined reference to `CGAL::assertion_fail(char const*, char const*, int,
char const*)'
collect2: ld returned 1 exit status

I have tried searching around for a solution but still remain stuck!
Is there something I'm missing?

Many Thanks for your help :)






--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Compile-error-with-just-includes-tp4655716.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page