Thanks. The problem was the library itself; it was compiled with Microsoft Visual C++ Express 2010, so it needed msvcr100.dll which is not on Windows XP by default (it gets in win7 with automatic updates i think), and since my wine installation has that file, it's all good.
p.s. this is example code, in my real app the results from pinger populate an array of floats which then are used to draw a realtime plot with the Qwt Library.
p.s.2 where is the [solved] button ?