Results 1 to 2 of 2

Thread: include GTK in eclipse project

  1. #1
    Join Date
    Jan 2009

    include GTK in eclipse project

    Hi all.

    I am trying to get compilation of a gtk project to work. Using a managed C Eclipse project. I have included /usr/include/gtk-2.0/gtk in the compiler include path. But i'm not sure what to set in the linker search path?

    Another thing. I have seen example code using

    #include <gtk/gtk.h>

    I assumed this meant that the include directory should be set to the /usr/include/gtk-2.0.
    However, doing this resulted in tons of syntax errors, even though i didn't use any includes in the source code? I assume this has to do with the compiler going into non C source due to the settings of the managed makefile?
    Last edited by SpectacularNick; January 6th, 2009 at 06:51 PM. Reason: I made some progress

  2. #2
    Join Date
    Oct 2007
    Ubuntu Studio 12.10 Quantal Quetzal

    Re: include GTK in eclipse project

    Would it be alright if you post the source code you are trying to compile? Just so I can see the problem.

Tags for this Thread


Posting Permissions

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