Error compiling tetgen_plugin
Posted: 25 May 2010, 10:13
I'm having trouble compiling the tetgen_plugin from svn version 4481. From the last call onward:
It looks like there are some #ifdef and #ifndef's of TETLIBRARY trying to set it up for cli or library. If I force #define TETLIBRARY in tetgen.h, I get the following error:
My guess is that someone messed with the preprocessors and didn't test it before submitting. It looks like either TETLIBRARY defined, or not defined there is a problem. Can anyone help me out?
Code: Select all
g++ -Wl,-O1 -o plugin ElmerAPI.o predicates.o tetgen.o -L/usr/lib -lQtGui -lQtCore -lpthread
ElmerAPI.o: In function `delegate_tetrahedralize':
ElmerAPI.cpp:(.text+0xcf): undefined reference to `tetrahedralize(char*, tetgenio*, tetgenio*, tetgenio*, tetgenio*)'
collect2: ld returned 1 exit status
make[1]: *** [plugin] Error 1
make[1]: Leaving directory `/home/smaddox/Downloads/elmerfem/elmerfem/trunk/misc/tetgen_plugin/plugin'
make: *** [sub-plugin-make_default] Error 2
Code: Select all
g++ -Wl,-O1 -o plugin ElmerAPI.o predicates.o tetgen.o -L/usr/lib -lQtGui -lQtCore -lpthread
/usr/lib/gcc/i486-linux-gnu/4.4.1/../../../../lib/crt1.o: In function `_start':
/build/buildd/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [plugin] Error 1
make[1]: Leaving directory `/home/smaddox/Downloads/elmerfem/elmerfem/trunk/misc/tetgen_plugin/plugin'
make: *** [sub-plugin-make_default] Error 2