From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martijn Lievaart Subject: Re: c++ linking problems Date: Thu, 13 Apr 2006 08:44:04 +0200 Message-ID: <443DF334.1070705@rtij.nl> References: <443D6B0F.3050206@khaletech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: netfilter-devel@lists.netfilter.org Return-path: To: Jay Hester In-Reply-To: <443D6B0F.3050206@khaletech.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org 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-/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