[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C problem
On Fri, 12 Feb 1999, Idan Sofer wrote:
>
>On Tue, 9 Feb 1999, guy keren wrote:
>
>> > gcc -g -lmarzo -o heb heb.c
>> could it be that you typed '-G' instead of '-g' ? since the '-G' flag
>no i did not.
>> another possibility: your 'Marzo_Reverse_String' function corrupts memory
>> in such a waythat when the dynamic linker tries to resolve new symbols
>> its memory image is simply corrupt...
>the problem is that when i compile marzo not as a library it works
>fine(i.e. all fuctions work)
You want -Lmarzo not -lmarzo. Read the gcc/ld manpage carefully. Also, it
is not enough to compile as library, you need to pack it as a library too
afaik. rtfm ar. Also check the compiled executable with ldd to see that it
does indeed point where it should (marzo) and that ld.so.conf is updated
before you use it. Keep a set of rescue diskettes around all the time, you
can kill the system with bad libs and lib.conf, and keep a log of changes
you make to the lib system. If you run RH the next software
install/uninstall may get confused or wipe your changes, be warned.
BTW the default static shell in RH is sash. It seems to be a version of
ash.
bye,
Peter