DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] Object Oriented DPDK: c++ class
@ 2014-01-02 16:51 Hamid Ramazani
  0 siblings, 0 replies; only message in thread
From: Hamid Ramazani @ 2014-01-02 16:51 UTC (permalink / raw)
  To: dev

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-02 16:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-02 16:51 [dpdk-dev] Object Oriented DPDK: c++ class Hamid Ramazani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).