CL and GCC

Source: Internet
Author: User
Today, we mainly use compiler options:
Microsoft: it is best to add the "-c" option to the. OBJ file in cl. You can use/isetincludemo-(one worker uses a include‑token and then call linkgenerate. EXE, so that you can use/libpath: libpath to set the Lib path. If multiple library paths are set in CL and all spaces need to be marked with quotation marks, an error is reported.
GNU: using gcc, you can only compile links that contain only pure C libraries (iostream is not ).ProgramOtherwise, an error is reported, which must be compiled using G ++. -Llibrary indicates the added library file, but the library must remove the lib and suffix. A before the name. -Ldir: add the Lib search path. -Before adding the header file search path to the system search path, ldir can hide the system header file.
 

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.