Re: (dummy problem) Cannot compile at all !!!



On Sat, 15 Jun 2002 12:34:19 -0700 (PDT)
Matthieu Fecteau <matthieufecteau yahoo com> wrote:

I'm having trouble to compile.  I admit that I'm not
guru in programming... please help !  I'm stuck !

At the top of my name.c file I put :
include <stdio.h>;
include <gtk.h>;
etc.
at the prompt, when I try to compile with :
$gcc name.c -o name
it give me this error :
name.c:3:17: gtk.h : File not found

You either have to write

include "gtk.h"
or 
include <gtk/gtk.h> 

Why this? The compiler only looks in the default inlude-directory
(/usr/include) if you say <foobar.h> and in the actual working directory
if you say "foobar.h". So if you say include <gtk/gtk.h> or <gtk-1.2/gtk.h>
he will take a look in /usr/include/gtk[-1.2] for the headers.

<snip> 

Matt

Regards
Marcus

Attachment: pgpjunBxqhpg0.pgp
Description: PGP signature



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