Re: [Gaul-devel] help about gaul for struggle.c
Brought to you by:
stewartadcock
From: Andrew W. N. <and...@gm...> - 2006-02-02 11:50:12
|
There may be number of reasons... On 2/2/06, 王 以松 <ys_...@ho...> wrote: > 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 First possible reason is a version and/or configuration mismach. Please, pay attention that you use headers from the gaul source tree (../gaul/src/, ../gaul/util/) and already installed libraries from outside this tree (/usr/local/lib/). As consequence, the version mismach may occur. Can you try to use headers from the /usr/local/include/ ? (Just remove all '-I../gaul/...' or replase them by '-I/usr/local/include') > > ### 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' [skip] Yet another possible reason is damaged libraries. Please, try $ nm -B /usr/local/lib/libgaul_util.so.0 and see, whether record like 00009bd0 T s_free_safe exists there (of cource hexdecimal address may be and will be another :-). -- Andrew W. Nosenko <and...@gm...> |