Eclipse CDT Neon.2 and latest MSYS2 GDB - eclipse

I would like to use MSYS2 and mingw64 for C/C++ Development on Windows 7. I use a batch for that.
SET MINGW_HOME=c:\msys64\mingw64
SET MSYS_HOME=c:\msys64\usr
SET PATH=%MINGW_HOME%\bin;%MSYS_HOME%;%PATH%
start eclipse.exe
I am able to build projects in eclipse and I also can run them but debugging does not work.

Related

Can I set the "clean" command in Eclipse Neon CDT without manually editing .cproject?

It seems to be a common problem with Eclipse CDT on Windows that Eclipse uses the Windows "del" command to perform a "clean", while using Unix-style paths and rm options. The workaround, at least for the Juno release, is to force Eclipse to use the GnuUtils rm instead: Editing .cproject to change the clean command
I had the opposite problem - Eclipse insisted on running "del" in a project using the GNU toolchain and MinGW build tools, which did not work. Therefore, I edited .cproject to force the use of rm.
Is this the only way to do it, even in newer releases of Eclipse, e.g. Neon? I would expect that Eclipse has a built-in control for this setting, but I browsed through the project settings and through the online help without finding any.

How to run eclipse luna mac os with java 7

i need to execute a ant script inside eclipse luna using java 7.
The problem is that if i try to change the path with jenv or try to set JAVA_HOME inside eclipse the ant script inside eclipse is always executed with java 6.
The OS is macOS Sierra.
I have to use eclipse.ini ?
Thanks
Assuming you are running the Ant script the normal way you can configure this in the configuration for the script.
Open the External Tools Configuration dialog using 'Run > External Tools > External Tools Configuration...'.
Find your script in the 'Ant Build' section and then look at the 'JRE' tab where you can set the JRE/JDK to anything you have told Eclipse about.

Broken tool-tips in eclipse CDT

I am not able to see tool-tips when hovering over variables. I have tried changing the Eclipse Mars theme but its not making a difference.
You have tagged the question "mint" so I assume this is Eclipse on Linux with GTK. The problem may be a GTK3 bug (there are a few in Eclipse Mars unfortunately, some fixed for the upcoming Mars.2 release, some for Neon.0 in the summer).
You can try forcing GTK2 with an evironment variable before launching Eclipse. Set SWT_GTK3=0 For example:
$ export SWT_GTK3=0
$ /path/to/eclipse -data /path/to/workspace

How to remove C/C++ perspective from Eclipse

Some time ago I used Eclipse for C++ development (Linux). Later I uninstalled Eclipse, and then installed it again for Java development. List of available perspectives still contains C/C++ perspective, which is not used. How can I delete this perspective from the list?
Note: Windows - Preferences - Perspectives - C/C++ - Delete doesn't work (Delete button is disabled). Maybe I need to uninstall something else? In any case, I don't need anything related to C/C++ in Eclipse.
You can uninstall CDT (Eclipse's plugin for C/C++ development).
From Eclipse CDT Wiki:
Shutdown the eclipse shell that is running CDT
Remove the CDT plugins
Navigate to the directory where the CDT plugins are installed (typically eclipse/plugins)
Remove the following plugins:
org.eclipse.cdt.*
Remove the CDT metadata
Navigate to the workspace/.metadata/.plugins directory
Remove the following directories (if they exist):
org.eclipse.cdt.*
Restart Eclipse

can compile c++ in eclipse - Cannot run program "autoreconf": Launching failed

I installed eclipse Helios a week ago. First I installed it without the CDT.
Today I installed the CDT along with the autotool (this it what can be seen in the list of possible updates). Afterwards, I installed also the minGW (Wascana) as written in the manual of CDT.
but after I create an Hello World project in eclipse I get this error (blinking non stopable) in the console tab:
Invoking autoreconf in build directory: D:/eclipse/proj/workspace/testcpp
Configuration failed with error
(Cannot run program "autoreconf": Launching failed)
Can anyone help me with this? What else do I need to install or config so my CDT will work?
thanks,
Eli
The autotools plug-in doesn't work on Windows yet. There is a fix in place for the upcoming Indigo Eclipse release.
The main problem is that Windows doesn't know how to run shell scripts (which is what autoreconf is). You have to launch the shell manually and ask it to run it. And that's what the fix is.