[Gaul-devel] help about gaul for struggle.c
Brought to you by:
stewartadcock
From: <ys_...@ho...> - 2006-02-02 02:11:51
|
I run into ths problem when i execute the file which i complied as [root@vmlinux example]# gcc -I../gaul/src/ -I../gaul/util -L/usr/local/lib/ -lgaul -lgaul_util -lm struggle.c -o struggle ### no any error was found in the step### however if complied it statically by doing so [root@vmlinux example]# gcc -I../gaul/src/ -I../gaul/util -L/usr/local/lib/ -lgaul -lgaul_util -lm struggle.c -o struggle -static ## it will output /tmp/ccOPJHGU.o(.text+0xfd): In function `main': : undefined reference to `random_seed' /tmp/ccOPJHGU.o(.text+0x109): In function `main': : undefined reference to `ga_crossover_char_allele_mixing' /tmp/ccOPJHGU.o(.text+0x10e): In function `main': : undefined reference to `ga_mutate_printable_singlepoint_drift' /tmp/ccOPJHGU.o(.text+0x113): In function `main': : undefined reference to `ga_select_two_sus' /tmp/ccOPJHGU.o(.text+0x118): In function `main': : undefined reference to `ga_select_one_sus' /tmp/ccOPJHGU.o(.text+0x11f): In function `main': : undefined reference to `ga_seed_printable_random' /tmp/ccOPJHGU.o(.text+0x147): In function `main': : undefined reference to `ga_genesis_char' /tmp/ccOPJHGU.o(.text+0x174): In function `main': : undefined reference to `ga_population_set_parameters' /tmp/ccOPJHGU.o(.text+0x187): In function `main': : undefined reference to `ga_evolution' /tmp/ccOPJHGU.o(.text+0x1ae): In function `main': : undefined reference to `ga_get_entity_from_rank' /tmp/ccOPJHGU.o(.text+0x1ba): In function `main': : undefined reference to `ga_chromosome_char_to_string' /tmp/ccOPJHGU.o(.text+0x1e6): In function `main': : undefined reference to `ga_get_entity_from_rank' /tmp/ccOPJHGU.o(.text+0x1ef): In function `main': : undefined reference to `ga_entity_get_fitness' /tmp/ccOPJHGU.o(.text+0x211): In function `main': : undefined reference to `ga_extinction' /tmp/ccOPJHGU.o(.text+0x235): In function `main': : undefined reference to `s_free_safe' collect2: ld returned 1 exit status ########################## [root@vmlinux example]# ./struggle ./struggle: error while loading shared libraries: libgaul.so.0: cannot open shared object file: No such file or directory as a matter of fact, i checked the lib directory, it shows as following: [root@vmlinux example]# ls /usr/local/lib/libgaul* /usr/local/lib/libgaul.a /usr/local/lib/libgaul.so.0.0.49 /usr/local/lib/libgaul_util.so.0 /usr/local/lib/libgaul.la /usr/local/lib/libgaul_util.a /usr/local/lib/libgaul_util.so.0.0.49 /usr/local/lib/libgaul.so /usr/local/lib/libgaul_util.la /usr/local/lib/libgaul.so.0 /usr/local/lib/libgaul_util.so Best regards and thanks. Yisong. |