Re: gtk_text_new() and g++

On Friday 21 November 2003 15:11, Ariel Fritz wrote:

I´m trying to use gtk_text_new() on my application.
I´m using gtk 2.0 and I´m try to compile it with g++.

When I try to compile my application compiler show me:
"gtk_text_new() undeclared" why?
In the other hand, if I test text example (is text.c file and it is
compiled with gcc)

Any Idea?

In short: you need to do

#include <gtk/gtk.h>

It's got nothing to do with g++ / gcc.

You should _really_ use GtkTextView though...


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]