i am having some problems compiling this code. There is a makefile, but using it to compile gives me errors. Also tried compile the .C files one at a time but errors out too. Even with CGAL installed.
Can someone take a look at it please?
Thanks
Printable View
i am having some problems compiling this code. There is a makefile, but using it to compile gives me errors. Also tried compile the .C files one at a time but errors out too. Even with CGAL installed.
Can someone take a look at it please?
Thanks
What kind of errors are you getting?
QuantumPete
Perhaps you can post the first few error messaages - it is most likely because you are missing some header files (or you've not told the compiler where those header files are).
--
Mats
Somethink like:
If i compile the .C files by themselvesCode:makefile:65: warning: overriding commands for target `.C'
/home/roliveira/NormFet_src/makefile:65: warning: ignoring old commands for target `.C'
O2 main.C
make: O2: Command not found
make: [main] Error 127 (ignored)
O2 util.C
Code:$ gcc -g -Wall main.C
In file included from main.C:1:
datastructure.h:5:24: error: CGAL/basic.h: No such file or directory
datastructure.h:6:28: error: CGAL/Cartesian.h: No such file or directory
datastructure.h:7:27: error: CGAL/MP_Float.h: No such file or directory
datastructure.h:8:33: error: CGAL/Filtered_exact.h: No such file or directory
datastructure.h:9:27: error: CGAL/Quotient.h: No such file or directory
datastructure.h:10:32: error: CGAL/Lazy_exact_nt.h: No such file or directory
...
util.h:36: error: 'reg_Triangulation' was not declared in this scope
util.h:36: error: 'reg_T' was not declared in this scope
est.h:3: error: variable or field 'eval_features' declared void
est.h:3: error: 'Triangulation' was not declared in this scope
est.h:3: error: 'triang' was not declared in this scope
The first one is because CC isn't set to the name of your compiler (and no default is supplied), so when it does:it becomes a line with CFLAGS only, which starts with -O2. The minus is eaten by MAKE (it means "ignore errors on this command", IIRC).Code:$CC $CFLAGS somefile.c
Setting CC=gcc or CC=cl should solve this one.
The second lot is obviously not finding the header files for GCAL - maybe you need to put a path in for that. Use "-I somepath" to do that.
--
Mats