Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to compile C in eclipse juno

I have to date only been able to compile C code through the command line using the gcc -o extension.

I would ideally like some sort of IDE to help with debugging and productivity, but I am as yet having no luck.

Specifically in relation to Eclipse Juno, I am unable to get it to compile or debug any C code at all.

Just to make sure I had completed the neccesary prerequisites, I downloaded mingw-get-inst-20120426.exe , but the report log from it claimed that all elements of mingw were already installed.

On the Makefile Project settings in the New CDT Project Wizard subsection of preferences I have tried using Cygwin PE Parser and PE Windows Parser (separately and together).

Eclipse Juno C compilation

There is no difference when attempting to run as a local C Application

like image 286
Stumbler Avatar asked Nov 12 '22 14:11

Stumbler


1 Answers

Your MinGw is properly not set up. Edit your path variable in your PC to

C:\MinGW\bin;

C:\MinGW\msys\1.0\bin

and try to compile.

Have you installed MinGW? It creates run time environment for C and CPP.

like image 65
Aakash Avatar answered Nov 15 '22 05:11

Aakash