From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ve0-x234.google.com (mail-ve0-x234.google.com [IPv6:2607:f8b0:400c:c01::234]) by dpdk.org (Postfix) with ESMTP id 451A1590E for ; Thu, 2 Jan 2014 17:49:56 +0100 (CET) Received: by mail-ve0-f180.google.com with SMTP id jz11so7251471veb.25 for ; Thu, 02 Jan 2014 08:51:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=ZfXDGv6IG7Qj+ZLsPgv26tnSq6WJ7/gqaN62vJioWWk=; b=G6xdzXC0lqwHVmxKi6orU7lwe8PRQnWGrB7D2sZjWgP7gUfwgqY6qo9HA1mre11l9X jgxNyH9CCxL6M9aB9scIdktaJZgYH8veC11PV6QmVDKqrcWuWlNY8sIAH7h9fRU4QnJ4 q5/AVCeTOOeV7kxvQYPu5qxYlkwl73qMAOkVVr+ityfXScqsDJwq4nab75Jo1pHojnRP UpYUfnbQ1ejIVuCR83T7AfCTFH2/Zwgzc+BXgYB58TheHvN0OTxrCk3J72eDR5ZawYEL cUDYDBfEatsCu1UIo2oXyfIIsO9MeKy4sgqSn3QAwyprABihCK37+mpDcDsUXiSnQbjn QUpA== MIME-Version: 1.0 X-Received: by 10.59.8.100 with SMTP id dj4mr3521104ved.55.1388681466639; Thu, 02 Jan 2014 08:51:06 -0800 (PST) Received: by 10.58.77.173 with HTTP; Thu, 2 Jan 2014 08:51:06 -0800 (PST) Date: Thu, 2 Jan 2014 20:21:06 +0330 Message-ID: From: Hamid Ramazani To: dev@dpdk.org Content-Type: text/plain; charset=ISO-8859-1 Subject: [dpdk-dev] Object Oriented DPDK: c++ class X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jan 2014 16:49:56 -0000 Hi, Anyone has written an object oriented DPDK application? I've written a simple helloClass program, and I've created the object file by following Makefile: helloClass.o : helloClass.cpp g++ -c helloClass.cpp -I/home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/include but I've problem in linking stage. I've tried many ways but I get the errors: undefined reference to... and multiple definition of... I'd really appreciate if you give me an example, considering following points: 1. do you compile DPDK with the default given instructions in Getting Started Guide or do you change Makefiles, like adding -c for compatibility of both c and c++ object files. 2. your cpp and h file(s) 3. Makefile 4. env. variables and/or necessary path Also, I previously sent an email with following subject: g++: undefined reference to but I think current subject is more proper. Thanks a lot in advance. All the Best, Hamid