Compile Error Using Gtk with C++.  Urgent.
- From: Thomas Scott <tscott sierradesign com>
- To: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Compile Error Using Gtk with C++.  Urgent.
- Date: Tue, 8 Oct 2002 11:32:14 -0700 
I have searched 
everywhere and cannot find a simple example of how to successfully compile a 
.cpp (or .cc) file that includes <gnome.h> and has Gtk code.  The 
most basic example of a working program that compiles with c 
is:
 
gcc `gtk-config 
--libs` `gtk-config --cflags` -o hello hello.c
If I try the 
following:
 
g++ `gtk-config 
--libs` `gtk-config --cflags` -o hello hello.cpp
 
It complains that it 
cannot find <gome.h>.  Does anyone know what the trick is to making 
this basic example work?
 
Tom
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]