SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] a question of "sctpd_program" (pre14)


Chronological Thread 
  • From: "Michael Mueller" <bhu5nji AT yahoo.com>
  • To: <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] a question of "sctpd_program" (pre14)
  • Date: Fri Aug 31 10:08:01 2001
  • List-id: SCTP Discussions <discussion.sctp.de>

The errors you show after your modification are the result of
#includes found in gtk.h. You solved one problem and uncovered more
:-). The compiler needs help finding the entire gtk package. You
might try adding "-I/usr/include/gtk-1.2/gtk" to the compiler
options. FOr more information on -I, see man gcc and search on
"Directory options".

You may need to use the -isystem option. The -I applies to

#include "file.h"

and not

#include <file.h>

So, if you need to point the compiler to bracketed files,
the -isystem option works.

I had similar problems in compiling programs/discard_server in a new
directory as part of an integration effort. That's how I learned
about the -isystem option. I strongly recommend a read through man
gcc on Directory options, nonetheless.

I am using gcc 3.0.

HTH,
Mike
----- Original Message -----
From: "wu zhen"
<wuzhen_zq AT sina.com.cn>
To:
<discussion AT sctp.de>
Sent: Friday, August 31, 2001 3:36 AM
Subject: [SCTP-Discussion] a question of "sctpd_program" (pre14)


: when i type "make" in this dir,it gets:
: ------------------------------------------------------------------
---------------------
:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../sctp -I../sctpdlib -g -O
2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -DLINUX -c
daytime_simple.c
: daytime_simple.c:16:21: gtk/gtk.h: No such file or directory
: make: *** [daytime_simple.o] Error 1
: ------------------------------------------------------------------
--------------------
:
:
: i use "locate" to find "gtk.h" in c/gtk.h"
: then i modify the daytime_simple.c as this:
: -----------------------------------------------------
: #include <gtk/gtk.h>
: =>#include "gtk-1.2/gtk/gtk.h"
: ------------------------------------
:
: i type "make " again,but this time it told me:
: -------------------------------------------------------
:
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../sctp -I../sctpdlib -g -O
2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -DLINUX -c
daytime_simple.c
: In file included from daytime_simple.c:17:
: /usr/include/gtk-1.2/gtk/gtk.h:31:21: gdk/gdk.h: No such file or
directory
: /usr/include/gtk-1.2/gtk/gtk.h:32:31: gtk/gtkaccelgroup.h: No such
file or directory
: /usr/include/gtk-1.2/gtk/gtk.h:33:31: gtk/gtkaccellabel.h: No such
file or directory
: /usr/include/gtk-1.2/gtk/gtk.h:34:31: gtk/gtkadjustment.h: No such
file or
: ........
: ........
: ........
: make: *** [daytime_simple.o] Error 1
: ------------------------------------------------------
: i don't copy all the errors , it's too long.
:
:
: my OS is Redhat 7.1, kernel 2.4.2-2
: can anyone give me some advices how to do now?
:
:
: thanks a lot!
: wu zhen
:
zwu AT cs.ecnu.edu.cn
:
:
: v+ºË"¢yšŠX§‚X¬µØ¬r?Š‰ìrÚ]zm?ðà ¶—^þf¢–f§þX¬¶)ߣ÷b±Ë¬²*'





Archive powered by MHonArc 2.6.19+.

Top of page