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?
(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.
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.
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.
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.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With