Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] want to use CGAL in Matlab, but can't compile mex file in matlab,

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] want to use CGAL in Matlab, but can't compile mex file in matlab,


Chronological Thread 
  • From: "" <>
  • To:
  • Subject: Re: [cgal-discuss] want to use CGAL in Matlab, but can't compile mex file in matlab,
  • Date: Sun, 12 Jan 2014 13:23:41 -0800 (PST)

Marc Glisse wrote
> On Sun, 12 Jan 2014,

> adnan.mujahid@

> wrote:
>
>> Marc Glisse wrote
> You probably mistyped something... An alternative, now I know you are
> using ubuntu:
>
> sudo ln -s ld.bfd /usr/bin/ld
> --
> Marc Glisse

Bravo Marc,

Its working now. Many thanks!

Using the same approach, I tried to compile the attached code pcdlaplace.tar
<http://cgal-discuss.949826.n4.nabble.com/file/n4658634/pcdlaplace.tar>
with following command:


mex -v point_cloud.C comp_llpmatrix.C glpmatrix.C glpmatrix_arbdst.C
glpmatrix_kernel.C lpbmatrix.C lpmatrix.C -ICGAL -lgmp -lboost_thread
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-L/usr/lib/:/usr/local/lib/:/usr/local/MATLAB/R2012a/extern/lib/glnxa64/





​/-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "point_cloud.C"

-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "comp_llpmatrix.C"

-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "glpmatrix.C"

-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "glpmatrix_arbdst.C"

-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "glpmatrix_kernel.C"

-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "lpbmatrix.C"

-> g++-4.4 -c -ICGAL
-I/usr/include/:/usr/local/include/:/usr/local/MATLAB/R2012a/extern/include/
-I/usr/local/MATLAB/R2012a/extern/include
-I/usr/local/MATLAB/R2012a/simulink/include -DMATLAB_MEX_FILE -ansi
-D_GNU_SOURCE -fPIC -fno-omit-frame-pointer -pthread -DMX_COMPAT_32 -O
-DNDEBUG "lpmatrix.C"

-> g++-4.4 -O -pthread -shared
-Wl,--version-script,/usr/local/MATLAB/R2012a/extern/lib/glnxa64/mexFunction.map
-Wl,--no-undefined -o "point_cloud.mexa64" point_cloud.o comp_llpmatrix.o
glpmatrix.o glpmatrix_arbdst.o glpmatrix_kernel.o lpbmatrix.o lpmatrix.o
-lgmp -lboost_thread
-L/usr/lib/:/usr/local/lib/:/usr/local/MATLAB/R2012a/extern/lib/glnxa64/
-Wl,-rpath-link,/usr/local/MATLAB/R2012a/bin/glnxa64
-L/usr/local/MATLAB/R2012a/bin/glnxa64 -lmx -lmex -lmat -lm

glpmatrix_arbdst.o: In function `mexFunction':
glpmatrix_arbdst.C:(.text+0x2c): multiple definition of `mexFunction'
glpmatrix.o:glpmatrix.C:(.text+0x2c): first defined here
glpmatrix_kernel.o: In function `mexFunction':
glpmatrix_kernel.C:(.text+0x2c): multiple definition of `mexFunction'
glpmatrix.o:glpmatrix.C:(.text+0x2c): first defined here
lpbmatrix.o: In function `mexFunction':
lpbmatrix.C:(.text+0x2c): multiple definition of `mexFunction'
glpmatrix.o:glpmatrix.C:(.text+0x2c): first defined here
point_cloud.o: In function `CGAL::Tuple_d<double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> >
>::print(std::basic_ostream<char, std::char_traits&lt;char> >&, char const*)
const':
point_cloud.C:(.text._ZNK4CGAL7Tuple_dIdNS_16Linear_algebraCdIdSaIdEEEE5printERSoPKc[CGAL::Tuple_d<double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> >
>::print(std::basic_ostream<char, std::char_traits&lt;char> >&, char const*)
const]+0x1d): undefined reference to `CGAL::IO::mode'
comp_llpmatrix.o: In function
`simplex_sign_volume(std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > >)':
comp_llpmatrix.C:(.text+0x511): undefined reference to `dgetrf_'
comp_llpmatrix.C:(.text+0x5d9): undefined reference to `dgetrf_'
comp_llpmatrix.o: In function
`est_tangent_space_lapack(CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > >
const&, double, unsigned int,
std::vector<CGAL::Vector_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Vector_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > >&)':
comp_llpmatrix.C:(.text+0x819): undefined reference to `dspev_'
comp_llpmatrix.o: In function `void
CGAL::tuple_dim_check<__gnu_cxx::__normal_iterator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >*,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > > >
>(__gnu_cxx::__normal_iterator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >*,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > > >,
__gnu_cxx::__normal_iterator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >*,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > > >,
char const*, int, char const*)':
comp_llpmatrix.C:(.text._ZN4CGAL15tuple_dim_checkIN9__gnu_cxx17__normal_iteratorIPNS_7Point_dINS_11Cartesian_dIdNS_16Linear_algebraCdIdSaIdEEEEEEESt6vectorIS9_SaIS9_EEEEEEvT_SF_PKciSH_[void
CGAL::tuple_dim_check<__gnu_cxx::__normal_iterator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >*,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > > >
>(__gnu_cxx::__normal_iterator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >*,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > > >,
__gnu_cxx::__normal_iterator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >*,
std::vector<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >,
std::allocator<CGAL::Point_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > > > >,
char const*, int, char const*)]+0x339): undefined reference to
`CGAL::assertion_fail(char const*, char const*, int, char const*)'
comp_llpmatrix.o: In function `void
CGAL::tuple_dim_check<CGAL::Iterator_project&lt;__gnu_cxx::__normal_iterator&lt;CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> const*,
std::vector<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>,
std::allocator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> > > >,
CGAL::RC_simplex_d<CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >
>::Point_from_VIV_iterator, CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
CGAL::Point_d<CGAL::Cartesian_d&lt;double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > > const*, int, int>
>(CGAL::Iterator_project<__gnu_cxx::__normal_iterator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> const*,
std::vector<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>,
std::allocator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> > > >,
CGAL::RC_simplex_d<CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >
>::Point_from_VIV_iterator, CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
CGAL::Point_d<CGAL::Cartesian_d&lt;double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > > const*, int, int>,
CGAL::Iterator_project<__gnu_cxx::__normal_iterator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> const*,
std::vector<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>,
std::allocator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> > > >,
CGAL::RC_simplex_d<CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >
>::Point_from_VIV_iterator, CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
CGAL::Point_d<CGAL::Cartesian_d&lt;double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > > const*, int, int>, char const*, int, char
const*)':
comp_llpmatrix.C:(.text._ZN4CGAL15tuple_dim_checkINS_16Iterator_projectIN9__gnu_cxx17__normal_iteratorIPKNS_8internal11CC_iteratorINS_17Compact_containerINS_11RC_vertex_dINS_17Regular_complex_dINS_11Cartesian_dIdNS_16Linear_algebraCdIdSaIdEEEEEEEEENS_7DefaultEEELb0EEESt6vectorISI_SaISI_EEEENS_12RC_simplex_dISE_E23Point_from_VIV_iteratorERKNS_7Point_dISD_EEPSU_iiEEEEvT_SY_PKciS10_[void
CGAL::tuple_dim_check<CGAL::Iterator_project&lt;__gnu_cxx::__normal_iterator&lt;CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> const*,
std::vector<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>,
std::allocator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> > > >,
CGAL::RC_simplex_d<CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >
>::Point_from_VIV_iterator, CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
CGAL::Point_d<CGAL::Cartesian_d&lt;double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > > const*, int, int>
>(CGAL::Iterator_project<__gnu_cxx::__normal_iterator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> const*,
std::vector<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>,
std::allocator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> > > >,
CGAL::RC_simplex_d<CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >
>::Point_from_VIV_iterator, CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
CGAL::Point_d<CGAL::Cartesian_d&lt;double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > > const*, int, int>,
CGAL::Iterator_project<__gnu_cxx::__normal_iterator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> const*,
std::vector<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>,
std::allocator<CGAL::internal::CC_iterator&lt;CGAL::Compact_container&lt;CGAL::RC_vertex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false> > > >,
CGAL::RC_simplex_d<CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > >
>::Point_from_VIV_iterator, CGAL::Point_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > const&,
CGAL::Point_d<CGAL::Cartesian_d&lt;double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > > const*, int, int>, char const*, int, char
const*)]+0x345): undefined reference to `CGAL::assertion_fail(char const*,
char const*, int, char const*)'
comp_llpmatrix.o: In function
`CGAL::Convex_hull_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > >
>::compute_equation_of_base_facet(CGAL::internal::CC_iterator<CGAL::Compact_container&lt;CGAL::RC_simplex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>)':
comp_llpmatrix.C:(.text._ZN4CGAL13Convex_hull_dINS_11Cartesian_dIdNS_16Linear_algebraCdIdSaIdEEEEEE30compute_equation_of_base_facetENS_8internal11CC_iteratorINS_17Compact_containerINS_12RC_simplex_dINS_17Regular_complex_dIS5_EEEENS_7DefaultEEELb0EEE[CGAL::Convex_hull_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > >
>::compute_equation_of_base_facet(CGAL::internal::CC_iterator<CGAL::Compact_container&lt;CGAL::RC_simplex_d&lt;CGAL::Regular_complex_d&lt;CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > > > >,
CGAL::Default>, false>)]+0x179): undefined reference to `CGAL::ORIGIN'
comp_llpmatrix.o: In function `CGAL::Delaunay_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > >,
CGAL::Cartesian_d<double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > >::is_S_cocircular()':
comp_llpmatrix.C:(.text._ZN4CGAL10Delaunay_dINS_11Cartesian_dIdNS_16Linear_algebraCdIdSaIdEEEEES5_E15is_S_cocircularEv[CGAL::Delaunay_d<CGAL::Cartesian_d&lt;double,
CGAL::Linear_algebraCd&lt;double, std::allocator&lt;double> > >,
CGAL::Cartesian_d<double, CGAL::Linear_algebraCd&lt;double,
std::allocator&lt;double> > > >::is_S_cocircular()]+0x6b2): undefined
reference to `CGAL::assertion_fail(char const*, char const*, int, char
const*)'
collect2: ld returned 1 exit status

mex: link of ' "point_cloud.mexa64"' failed.

Error using mex (line 206)
Unable to complete successfully.​/



The code seems to compile fine, but at fails to link? Would appreciate your
help alot!!






--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/want-to-use-CGAL-in-Matlab-but-can-t-compile-mex-file-in-matlab-tp3521519p4658634.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page