All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martijn Lievaart <m@rtij.nl>
To: Jay Hester <jay.hester@khaletech.com>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: c++ linking problems
Date: Thu, 13 Apr 2006 08:44:04 +0200	[thread overview]
Message-ID: <443DF334.1070705@rtij.nl> (raw)
In-Reply-To: <443D6B0F.3050206@khaletech.com>

Jay Hester wrote:

> Hello,
>     This is probably something easy that i'm overlooking, but how do 
> you link in netfilter_queue in to a c++ program?
>
>     I've lightly modified the code in 
> libnetfilter_queue-<vers>/utils/nfqnl_test.c to build a test program. 
> When I try to compile the program i'm getting lots of linking errors 
> like this:
>

If you did:

extern C {
 #include "netfilter_queue.h" // Or whatever C header
 #include "another_C_header.h"
}

I think it should work.

M4

      parent reply	other threads:[~2006-04-13  6:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-12 21:03 c++ linking problems Jay Hester
2006-04-12 21:23 ` Julien VALIENTE
2006-04-13  6:44 ` Martijn Lievaart [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=443DF334.1070705@rtij.nl \
    --to=m@rtij.nl \
    --cc=jay.hester@khaletech.com \
    --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.