Linux command line

Source: Internet
Author: User

Linux under C Programming:

GCC compilation common options:

-I dir: Adds the dir directory to the list of search paths for the header file.

-L dir: Adds the dir directory to the list of search paths for the library file.

-fpic: The command uses a relative address.

There are two ways to run a program directly without having to specify a dynamic library under the shell:

1. Copy the library file to the/usr/lib or/lib directory, or under either of these directories, create a shortcut that links to the library and name it libname.so.

2. You can also directly configure the/etc/ld.so.conf file, add the path of the library to the file (one path per line), remember: The last to run the Ldconfig command, so that the changes take effect.

Linux command line

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.