Subject: CGAL users discussion list
List archive
- From: Shravan1804 <>
- To:
- Subject: [cgal-discuss] Running CGAL code on cygwin
- Date: Tue, 29 Oct 2013 06:59:12 -0700 (PDT)
Good afternoon,
I have some trouble after installing CGAL on my own machine (windows 7 with
cygwin)
I have followed the steps explained here
<http://www.cgal.org/Manual/4.1/doc_html/installation_manual/Chapter_installation_manual.html#Section_12>
:
cmake . # configure
make # compile
make install # install
Everything went well and there weren't any errors.
Now I am trying to compile and run the sample scripts and run the following
commands:
cgal_create_cmake_script
cmake .
make
Everything goes fine until the make. The hello.cpp exe (see attached) is
created without problems but the hello-exact.cpp fail with the error I
attach at the end of this message.
hello.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/n4658326/hello.cpp>
hello-exact.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/n4658326/hello-exact.cpp>
I have been searching the web for quite some time now without finding a
solution. Any ideas?
Thanks!
Shravan1804
The error for hello-exact.cpp:
$ make
Scanning dependencies of target hello
[ 16%] Building CXX object CMakeFiles/hello.dir/hello.cpp.o
Linking CXX executable hello.exe
[ 16%] Built target hello
Scanning dependencies of target hello-exact
[ 33%] Building CXX object CMakeFiles/hello-exact.dir/hello-exact.cpp.o
In file included from
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/CoreDefs.h:41:0,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/CORE.h:39,
from
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE_coercion_traits.h:33,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE_Expr.h:29,
from
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/Exact_predicates_exact_constructions_kernel_with_sqrt.h:33,
from /cygdrive/w/ETH/Master/Algorithms Lab/week6/sample/hello-exact.cpp:1:
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/extLong.h:171:8:
warning: ‘CORE::extLong::extLong(int)’ redeclared without dllimport
attribute after being referenced with dll linkage [enabled by default]
inline extLong::extLong(int i) : val(i), flag(0) {
^
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/extLong.h:292:13:
warning: ‘bool CORE::extLong::isNaN() const’ redeclared without dllimport
attribute after being referenced with dll linkage [enabled by default]
inline bool extLong::isNaN() const {
^
In file included from
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/BigFloat.h:38:0,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/RealRep.h:38,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/Real.h:40,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/ExprRep.h:42,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/Expr.h:42,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/CORE.h:68,
from
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE_coercion_traits.h:33,
from /cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE_Expr.h:29,
from
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/Exact_predicates_exact_constructions_kernel_with_sqrt.h:33,
from /cygdrive/w/ETH/Master/Algorithms Lab/week6/sample/hello-exact.cpp:1:
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/BigFloatRep.h:266:8:
warning: ‘CORE::BigFloatRep::BigFloatRep(const CORE::BigInt&, long unsigned
int, long int)’ redeclared without dllimport attribute after being
referenced with dll linkage [enabled by default]
inline BigFloatRep::BigFloatRep(const BigInt& I, unsigned long er, long ex)
^
/cygdrive/c/cygwin64/lib/CGAL-4.1/include/CGAL/CORE/BigFloatRep.h:362:13:
warning: ‘bool CORE::BigFloatRep::isZeroIn() const’ redeclared without
dllimport attribute after being referenced with dll linkage [enabled by
default]
inline bool BigFloatRep::isZeroIn() const {
^
Linking CXX executable hello-exact.exe
CMakeFiles/hello-exact.dir/hello-exact.cpp.o:hello-exact.cpp:(.rdata$.refptr._ZTVN4CORE7SqrtRepE[.refptr._ZTVN4CORE7SqrtRepE]+0x0):
undefined reference to `vtable for CORE::SqrtRep'
CMakeFiles/hello-exact.dir/hello-exact.cpp.o:hello-exact.cpp:(.rdata$.refptr._ZTVN4CORE6DivRepE[.refptr._ZTVN4CORE6DivRepE]+0x0):
undefined reference to `vtable for CORE::DivRep'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.1/../../../../x86_64-pc-cygwin/bin/ld:
CMakeFiles/hello-exact.dir/hello-exact.cpp.o: bad reloc address 0x0 in
section `.rdata$.refptr._ZTVN4CORE6DivRepE[.refptr._ZTVN4CORE6DivRepE]'
collect2: error: ld returned 1 exit status
CMakeFiles/hello-exact.dir/build.make:98: recipe for target
`hello-exact.exe' failed
make[2]: *** [hello-exact.exe] Error 1
CMakeFiles/Makefile2:98: recipe for target `CMakeFiles/hello-exact.dir/all'
failed
make[1]: *** [CMakeFiles/hello-exact.dir/all] Error 2
Makefile:75: recipe for target `all' failed
make: *** [all] Error 2
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Running-CGAL-code-on-cygwin-tp4658326.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/29/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/29/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/29/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/29/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/30/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/30/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/31/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/31/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/31/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/31/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/31/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/31/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/30/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/30/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/29/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Shravan1804, 10/29/2013
- Re: [cgal-discuss] Running CGAL code on cygwin, Laurent Rineau (CGAL/GeometryFactory), 10/29/2013
Archive powered by MHonArc 2.6.18.