On 1/12/2012 10:57 AM, Hamid Reza Khaleghzadeh wrote:
Hi yanke,
Thanks for you answer. I have used -lpthread, but problem remains.
On 1/12/12, yanke<ykya...@126.com> wrote:
add -lpthread when compiling
The *order* of -l flags matters. The linker scans libraries
in the order given. So in this case, I'd say you need to make
sure that -lpthread is the last of the libraries, or near the
last. You also need to make sure that it's on the linker's
search path (that is, that the directory containing libpthread.so
is on the search path).
This is all just ordinary C/C++ program compilation stuff ...
Eliot Moss
_______________________________________________
gem5-users mailing list
gem5-users@gem5.org
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users