[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
[an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]![]() |
![]() |
![]() |
|||||||||||||||||||||||||
|
|||||||||||||||||||||||||||
![]() |
![]() |
![]() |
Hejsa, Jeg vil gerne lære at lave C libraries. Jeg har prøvet at følge opskriften på http://tldp.org/HOWTO/Program-Library-HOWTO/shared-libraries.html#AEN95 uden held. Kan nogle hjælpe udfra nedenstående ? $ make gcc -Wall -ansi -Werror -fPIC -c martinlib.c gcc -shared -Wl,-soname,libmartin.so.1 -o libmartin.so.1.0 martinlib.o -lc $ sudo mv libmartin.so.1.0 /lib64/ $ sudo ldconfig -v | grep martin /sbin/ldconfig.real: Can't stat /lib/x86_64-linux-gnu: No such file or directory libmartin.so.1 -> libmartin.so.1.0 /sbin/ldconfig.real: Cannot stat /usr/lib/libiodbcadm.so: No such file or directory /sbin/ldconfig.real: Cannot stat /usr/lib/libdrvproxy.so: No such file or directory $ make example gcc -o example example.c -lmartin /usr/bin/ld: cannot find -lmartin collect2: ld returned 1 exit status make: *** [example] Error 1
![]() |
![]() |
![]() |
||||||||||||
|
||||||||||||||
![]() | ||||||||||||||
|
||||||||||||||
![]() |
![]() |
![]() |