Precautions for Dynamic Link Library

Source: Internet
Author: User
For more information about Linux programming and kernel, see the following. 1. Precautions for dynamic link libraries.

If a program with GTK has

Then you need to add the parameters of the dynamic link library.

$ Gcc test_a.c test_ B .c iptbox. c-fPIC-shared-o iptbox. so 'pkg-config -- cflags -- libs gtk +-2.0

The generated. so Dynamic Link Library must be stored in the usr/lib directory.

Cp libipt. so/usr/lib

2. If an error occurs while running the AP, you can use the following methods to find the problem:

Strace./test

3. Find the path in the folder:

Find/usr/lib-name libept. so

4. Decompression command:

Tar-zxvf file name

5. RPM package solution:

# Rpm-ivh scim-1.4.7.4-1benX.src.rpm

# Cd/usr/src/dorado/SPECS

# Rpmbuild-bb scim. spec

6. Open Directory Permissions:

Chmod 777 root (directory name)

7. Install software in linux:

A ../configure

B. make

C. make install

8. Update Library Reference:

Ldconfig

9. Check whether the AP is installed.

# Whereis scim-ppenglish

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.