Yan Wu wrote:
Hi,
I was compiling octave 2.9.18 with the qhull static library built from source and the enable-shared flag. It turned out with an error asking for a dynamic qhull library libqhull.so.
I tried with the following script into the Makefile of qhull-2003.1:
libqhull.so: $(OBJS)
c++ -shared -Xlinker -soname -Xlinker $@ -o libqhull.so $(OBJS)
But it failed with the following:
/usr/lib/crt1.o(.text+0x41): In function `_start':
: undefined reference to `main'
collect2: ld returned 1 exit status
make: *** [libqhull.so] Error 1
Can anybody enlighten me about how to create the dynamic library?
Best wishes,
Yan
Use the src-rpm package [1] it includes a target for a dynamic library.
Kai
[1]
http://www.qhull.org/download/qhull-2003.1-1mdk.src.rpm