Hello Linux! \ N

Source: Internet
Author: User

2012.10.24

According to the introduction to Gcc on ubuntu wiki, We are initially familiar with Gcc usage. Compilation of a single file, capture errors, and compilation of multiple files. And easy to use Makefile.

An error occurred while connecting to the external database. When gcc-Wall file. c/usr/lib/libm. a-o file is used, the system prompts that this library does not exist. However, when gcc-Wall file. c-lm-o file is used, the compilation is successful and the program runs normally. Therefore, I have understood the meaning of-lm. The library libm. a does exist in my system. Then I used the find command and found that libm. a on my system is in the/usr/lib/x86_64-linux-gnu/folder. Is this the difference between a 64-bit host and a 32-bit host?

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.