Configure Visual Studio toolchain on Eclipse

 

1. Install software:

2. Open Eclipse -> Help -> Install New Software… ->

Work with: http://download.eclipse.org/tools/cdt/releases/9.4/ ->

CDT Optional Features -> C/C++ Visual C++ Support 9.4.3.201802261533

screen_eclipse_67.png

-> Next -> Agree -> Install -> FInish -> Restart

3. Close Eclipse

4. Open Developer Command Prompt for VS 2017 and run from it Eclipse (this trick will add all needed VS environment variables to path)

screen_cmd_66.png

5. Create new C++ project

screen_68.png

6. Open Project Properties

C/C++ General -> Paths and Symbols -> Includes -> Add… ->

 ${VSINSTALLDIR}/VC/Tools/MSVC/14.11.25503/include 

+ Add to all configurations

+ Add to all languages

screen_eclipse_69.png

7. Ok -> Apply and Close -> Yes

8. Build

9.Run -> Run configurations

  • screen_eclipse_70.png
  • C/C++ Application ->screen_eclipse_71.png
  • Run

Done!

screen_eclipse_72.png

Add a Comment

Your email address will not be published. Required fields are marked *