The only way to use winelib is to use winegcc/wineg++. Wine is not a plain library against which you can link.