I'm fairly new to eclipse but have figured out how to use it with Java
.
However, we are now moving on to C and I am having a hard time using it. I just want to use eclipse for my labs - i.e. to create / compile / test / run C exercises or tasks that have been set.
I created a new 'Labs' C project and have been creating the files ex1.c
, ex2.c
etc in the src
folder. Eclipse doesn't like this due to more than one main
across multiple files, but the files aren't related and each is supposed to have their own main
.
Can someone advise me as to whether there is a better way to setup / organise my workspace for this labwork or alternatively how to compile / run single files at a time in eclipse?