[dpdk-dev] g++: undefined reference to

2014-01-03 Thread Hamid Ramazani
Hey Stefan, Thanks a lot for your answer. I followed your instructions, and have following problem. Also I'd like to mention that on my system: echo $RTE_SDK /home/hamid/dpdk/dpdk-1.5.1r1 and echo $RTE_TARGET x86_64-default-linuxapp-gcc I get following error now: #

[dpdk-dev] g++: undefined reference to

2014-01-03 Thread Thomas Monjalon
Hello, 03/01/2014 11:48, Hamid Ramazani : > eal_timer.c:(.text+0x42c): undefined reference to `clock_gettime'

[dpdk-dev] g++: undefined reference to

2014-01-02 Thread Hamid Ramazani
Stefan, I did: find `pwd` | egrep "[ao]$" >> liblistWithDuplicates.txt then opened it and added \ to the end of each line and added those libraries to my g++ arguments in Makefile after helloClass.o Now, in output I get two types of errors: multiple definition of undefined reference to ...

[dpdk-dev] g++: undefined reference to

2014-01-02 Thread Stefan Baranoff
Hamid, I apologize for the earlier slight misdirection; I was on my phone and trying to respond from memory. The actual answer is really to use -lrte_static_library_name and not referencing the .o files. Sorry!!! To get this I ran 'make -n' on the 'Hello World' example app (careful, there's the g

[dpdk-dev] g++: undefined reference to

2014-01-02 Thread Hamid Ramazani
Hi, I wanted to write a simple program using class (object oriented). I've attached my helloClass.cpp and also Makefile. after runnig make I get below errors. I think: 1. it is the problem of using c code in c++ 2. I've used extern "C" in helloClass.cpp 3. Should I recompile the DPDK from source w

[dpdk-dev] g++: undefined reference to

2014-01-02 Thread Stefan Baranoff
Hamid, I do not think your attachments made it through but it looks like you are not linking the DPDK object files in this line: g++ helloClass.o -I/home/hamid/dpdk/dpdk-1.5.1r1/x86_64-default-linuxapp-gcc/include -lstdc++ There would need to be many more files beyond helloClass.o listed. Try add