build errors

This is a discussion on build errors within the Linux Programming forums, part of the Platform Specific Boards category; hi, i'm new 2 linux programming, and i tried just to test a program including gtk.h. Code: #include<gtk.h> int main() ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    374

    Post build errors

    hi, i'm new 2 linux programming, and i tried just to test a program including gtk.h.
    Code:
    #include<gtk.h>
    int main()
    {
      //nothing
    
      return 0;
    }
    i'm using anjuta ide, and the prog compiles allright. but when building it gives errors similler to these:

    #no such file/dir: gtk-config, pkg-config, glib-2.0, gtk+
    #unrecognized option: -fcflags, -flibs

    how can i fix this please?
    thanx 4 any help.
    Last edited by geek@02; 10-22-2005 at 10:21 PM.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

  2. #2
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    You probably need the gtk development packages. What they're called will depend on your dirtso but its likely something like gtk-devel

  3. #3
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    374
    when i run gtk-config, it detects my gtk version (1.2). But anjuta wont build my gkt prog?
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ten Errors
    By AverageSoftware in forum Contests Board
    Replies: 0
    Last Post: 07-20-2007, 10:50 AM
  2. Header File Errors...
    By Junior89 in forum C++ Programming
    Replies: 5
    Last Post: 07-08-2007, 12:28 AM
  3. Visual C++
    By gvector1 in forum Windows Programming
    Replies: 20
    Last Post: 03-14-2003, 10:37 AM
  4. executing errors
    By s0ul2squeeze in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2002, 12:43 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21