Error installing C in Eclipse

0

I am downloading C for eclipse (cygwin) and I have done everything that comes in this video to import everything necessary ( link ) and when doing the make, (control + B) I skipped this error in the console. Can someone help me?

20:42:54 **** Incremental Build of configuration Debug for project LenguajeC 
****
make all 
Building target: LenguajeC.exe
Invoking: Cygwin C Linker
gcc  -o "LenguajeC.exe"  ./hola.o ./holamundo.o   
./holamundo.o: In function 'main':
/cygdrive/c/Users/Fernando/Desktop/LenguajeC/Debug/../holamundo.c:3: multiple 
definition of 'main'
./hola.o:/cygdrive/c/Users/Fernando/Desktop/LenguajeC/Debug/../hola.c:4: 
first defined here
collect2: error: ld returned 1 exit status
make: *** [makefile:31: LenguajeC.exe] Error 1

20:42:54 Build Finished (took 408ms)
    
asked by Fernando 26.10.2017 в 20:48
source

1 answer

1

Apparently you are trying to build or specifically link two files in which each has a definition of main . Eclipse is taking the two files as part of the same project and will therefore try to generate a single executable file. Try creating a project for hello.c and another for hellomundo.c .

    
answered by 26.10.2017 / 21:04
source