All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sven Schuster <schuster.sven@gmx.de>
To: netfilter-devel@lists.netfilter.org
Subject: Re: why I cann't compile the program?
Date: Tue, 25 Nov 2003 08:01:05 +0100	[thread overview]
Message-ID: <3FC2FE31.50305@gmx.de> (raw)
In-Reply-To: <E1AOSBp-0003rO-Sc@vishnu.netfilter.org>


Hello,


Fangweiwei wrote:

>----------------------------------------------
>I try to compile it using: gcc test.c 
>  
>
try compiling it with

gcc -o test test.c -lipq

This will link it with the ipq library (which you of course must have
installed).

>but it gives me some msg as following:
>
>/tmp/ccYcdyBh.o: In function `die':
>/tmp/ccYcdyBh.o(.text+0xf): undefined reference to `ipq_perror'
>/tmp/ccYcdyBh.o(.text+0x1d): undefined reference to `ipq_destroy_handle'
>/tmp/ccYcdyBh.o: In function `main':
>/tmp/ccYcdyBh.o(.text+0x41): undefined reference to `ipq_create_handle'
>/tmp/ccYcdyBh.o(.text+0x7b): undefined reference to `ipq_set_mode'
>/tmp/ccYcdyBh.o(.text+0xb5): undefined reference to `ipq_read'
>/tmp/ccYcdyBh.o(.text+0xe3): undefined reference to `ipq_message_type'
>/tmp/ccYcdyBh.o(.text+0x12a): undefined reference to `ipq_get_msgerr'
>/tmp/ccYcdyBh.o(.text+0x157): undefined reference to `ipq_get_packet'
>/tmp/ccYcdyBh.o(.text+0x17e): undefined reference to `ipq_set_verdict'
>collect2: ld returned 1 exit status
>
>----------------------------------------------
>
>can you help me? thanks a lot.
>
>        Fangweiwei
>        fangweiwei@tom.com
>          2003-11-25
>

Sven

      reply	other threads:[~2003-11-25  7:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-25  1:41 why I cann't compile the program? Fangweiwei
2003-11-25  7:01 ` Sven Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3FC2FE31.50305@gmx.de \
    --to=schuster.sven@gmx.de \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.