ts-7000
[Top] [All Lists]

[ts-7000] Re: TS-TPC-8390/TS-4800 - GTK+ and Glade3 - Beginner Questions

To:
Subject: [ts-7000] Re: TS-TPC-8390/TS-4800 - GTK+ and Glade3 - Beginner Questions
From: "naturalwatt" <>
Date: Tue, 29 Nov 2011 16:32:34 -0000

--- In  "drex459" <> wrote:
>
> I'm still having issues in trying to access the GTK header files in my code 
> through the #include line. I've moved the libraries to where my .c file is 
> located, and I've tried moving my code to where the libraries are too, but it 
> keeps complaining that the file or directory doesn't exist. 
> 
> Is there something special that I need to do to be able to access the 
> appropriate headers within the code? 
> 

You may be having other problems, but in C,

#include <filename.h>

and

#include "filename.h"

look in different places.  The first form < > is for system files (loosely) and 
looks in defined include directories, typically /usr/include, /usr/include/sys 
and so on.  You can tell the compiler to look in other directories as well with 
the -I flag to gcc.

The second form " " is for user headers and typically looks in the directory 
where the existing C source code is.  You can put this in your program:

#include "/full/path/to/gtk/header.c"    (not literally of course).

This is very basic C language programming and not specific to the TS boards or 
GTK.

Martin



------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU