[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.tools.cdt] Re: Helloworld debug config. No binaries found!

Do I have a makefile?
Yes

Have I built the project w/o errors? Yes

-----

C Code Snippet:<<<start code snippet>>>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

int main(){
int Temp = 22;


   printf("Line 1. \n");
   printf("Line 2. \n");
   printf("HelloWorld!!! \n");

   return 0;
}
<<<end code snippet>>>


-----

Makefile Snippet : <<<start code snippet>>>
all : HelloWorld_C.exe

HelloWorld_C.exe : main.o
gcc main.o -o HelloWorld_C.exe


main.o : main.c
	gcc -g -Wall -c "main.c"

clean : rm --force *.o *.exe

<<<end code snippet>>>