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: "drex459" <>
Date: Wed, 30 Nov 2011 05:30:24 -0000
Thank you for all your suggestions Larry, Mark, and Martin! I really appreciate 
it!

Larry, Martin, I tried entering the absolute to the gtk.h header file with 
#include '/full/path/gtk.h', but the compiler still doesn't seem to like that.

I tried following along with the tutorial 
(http://www.micahcarrick.com/gtk-glade-tutorial-part-1.html) that Mark had 
suggested, and it was going fine up until running the compiled code 
"./tutorial", which presents me with the following error: "Gtk-WARNING **: 
cannot open display:". And as a result nothing is displayed. 

What does this error mean? 
My guess is that it has to do with the way I am developing on the board, and 
the fact that there is no real way to display the solution.

FYI: I'm connected to the board via serial port. I'm developing via a telnet 
(PUTTY) session, which connects me using UNIX (Debian).

Thanks in advance for all your help!

--- In  "naturalwatt" <> wrote:
>
> 
> 
> --- In  "drex459" <dexterjagula@> 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