Use the VC compiler and library in eclipse

Source: Internet
Author: User

1. File-> New-> C ++ project-> makefile Project (Hello World)-> Other toolchain

2. Right-click the project and choose Properties> C/C ++ build.

Remove the check box before "use default build command" and change "make" to "nmake.

3. Change the '. o' file in the makefile to'. OBJ ', because the target file automatically recognized by VC is' *. OBJ '. Rm is changed to erase.

4. Create three environment variables (C/C ++ build-> envrionment)

Path = xxx \ vc98 \ bin; XXX \ common \ msdev98 \ bin

Lib = xxx \ vc98 \ Lib

Include = xxx \ vc98 \ include

XXX is the installation path of VC.

5. Right-click and choose Properties> C/C ++ General> paths and add the above include and Lib paths to the include and library paths files in symbols.

Related Article

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.