Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding VC++ to Eclipse toolchain

I want to write a program to link with binaries already created with VC++. What are the steps to add a toolchain for VC++ in Eclipse? Has anyone tried it successfully? If so, does the debugger still work?

like image 807
User1 Avatar asked Aug 29 '09 13:08

User1


People also ask

How to install toolchain in Eclipse?

(Help->About Eclipse IDE, click Installation Details and look for C/C++ GCC Cross Compiler Support). If it isn't installed, use the Help->Install New Software dialog to install it. Be sure to restart Eclipse after installing. Open Project Properties and go to the Tool Chain Editor under the C/C++ Build section.

How do I add toolchain to Visual Studio?

In Project Explorer, right-click on the project name, select "Properties", then select "C/C++ General / Paths and Symbols". With the "Includes" tab in view, select "Add...", you'll get an "Add directory path" dialog.

How to compile and run C++ in Eclipse?

In "Toolchains" box, choose your compiler, e.g., "Cygwin GCC" or "MinGW GCC" ⇒ Next. Create a new file and Write some C++ code in the file. Right-click the project and select Build Project. Finally, right-click the project and select run as and then Local C/C++ application.


1 Answers

There is a toolchain implementation for VC++. The build plugin is called org.eclipse.cdt.msw.build, and there is a set of debugger plugins called org.eclipse.cdt.msw.debug.*. I think the build integration works, but the debugger integration still needs some work before it is usable.

Doug Schaefer on the CDT team has blogged about this several times, and has been running the Wascana project for some time to this end. Unfortunately, he's no longer working actively on Wascana.

If you wanted to put in some effort in bringing the VC++ toolchain and debug support closer to working condition, it would be very appreciated. I know that there are many people who would like to have that (myself included).

(The cdt-dev list can surely help you with further help and pointers.)

like image 64
JesperE Avatar answered Sep 28 '22 06:09

JesperE