Creating the Source Code and Building the Project

  1. In the Project Explorer view, right-click the HelloWorld_GCC project and select New > Source File.




  2. In the New Source File dialog, enter the file name HelloWorld_GCC.c.
  3. Click Finish to create the source file and open it in the code editing view.

  4. Add the following code to the new source file, and press CTRL+S to save it.
  5. #include <stdio.h> 
    
    int main(int argc, char** argv) 
    { 
          printf("Hello world\n");
          return 0; 
    } 
    </stdio.h>
  6. In the Project Explorer view, right-click the HelloWorld_GCC project and select Build Project. This creates the Linux executable and required support files.



  7. The items in the Debug folder are additional files required for debugging.
Previous Next