[gecode-users] Compiling statically

Lars Kotthoff larsko at cs.st-andrews.ac.uk
Sat Nov 7 17:11:55 CET 2009


Hi all,

 I've tried (and failed) to compile and linked Gecode statically.
./configure --enable-static doesn't seem to change anything and if I add -static
manually, it fails to compile with

g++ -pthread -static gecode/support/exception.o gecode/support/heap.o gecode/support/thread/thread.o gecode/support/thread/windows.o gecode/support/thread/pthreads.o -Wl,-soname=libgecodesupport.so.19 \
		-o libgecodesupport.so.19.0
/usr/lib/gcc/i486-linux-gnu/4.3.4/../../../../lib/crt1.o: In function `_start':
/build/buildd-eglibc_2.10.1-5-i386-GOKbsH/eglibc-2.10.1/csu/../sysdeps/i386/elf/start.S:115: undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [libgecodesupport.so.19.0] Error 1

Gcc version (Debian 4.3.4-6) 4.3.4. Any advice on what to change to make it
work?

Thanks,

Lars




More information about the gecode-users mailing list