Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Basic Tutorial? Makefiles in Eclipse CDT

Does anyone know where a good tutorial exists for making an Eclipse CDT C project? I've seen a couple on C++, but none of them describe what I need to know as an absolute beginner of the plug-in and of C programming in general:

  1. When I build the project, nothing happens. Why?
  2. When I add 'make targets' by right clicking files and adding the file name and an output file name, it will compile those files, but there are undefined reference errors (and before you tell me, YES I have looked those up on many SO questions and many other websites, but I have not found any solutions that address the problem in the context of CDT). Why are there linker errors, and what do I need to do to make the makefile simply compile my code as I would (e.g. "gcc -Wall source1.c source2.c -o client") in proper order so as not to produce the linker errors?

Any help will be much appreciated. I feel like Eclipse CDT is some kind of cryptic Pandora's box that whenever I open it unleashes chaos onto my programming universe because of the apparent lack of straight-forward beginner tutorials. Thank you in advance for any direction you could give.

like image 381
aquasheep Avatar asked Nov 12 '22 22:11

aquasheep


1 Answers

This could be of some help for you:

www.cs.umanitoba.ca/~eclipse/7-EclipseCDT.pdf

like image 148
attaboy182 Avatar answered Nov 15 '22 11:11

attaboy182