Find the answer to your Linux question:
Results 1 to 3 of 3
When I start a new C terminal project in Anjuta it can't find even the default header. I haven't done any C for a little over a year so maybe ...
  1. #1
    Just Joined! Col. Newman's Avatar
    Join Date
    Nov 2006
    Location
    Omaha, Nebraska
    Posts
    19

    When I start a new C project in Anjuta it can't find even the default header

    When I start a new C terminal project in Anjuta it can't find even the default header. I haven't done any C for a little over a year so maybe I am doing something stupid but I don't think so since I haven't even touched the code yet. Also I have never used this IDE before, I am used to CodeWarrior and Visual Studios.

    the default code
    Code:
    /* Created by Anjuta version 1.2.4a */
    /*	This file will not be overwritten */
    
    #include <stdio.h>
    int main()
    {
    	printf("Hello world\n");
    	return (0);
    }
    The Error Output
    Code:
    main.c:4:19: error: stdio.h: No such file or directory
    main.c: In function 'main':
    main.c:7:warning: incompatible implication implicit declaration of built-in function 'printf'
    make: *** [main.o] Error 1
    cc   -c -o main.o main.c

  2. #2
    Linux Enthusiast
    Join Date
    Aug 2006
    Posts
    631
    Have you installed the build-essential package?

    Code:
    sudo aptitude update
    sudo aptitude install build-essential
    Regards

  3. #3
    Just Joined! Col. Newman's Avatar
    Join Date
    Nov 2006
    Location
    Omaha, Nebraska
    Posts
    19
    That didn't help I don't think. But what did help was installing the 4 things it told be to right after I created a new project. AutoConf and Glib, I can't remember what the other 2 were. lol it helps to pay attention.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...