What happens if you run it in the wine command prompt? Fire that up using 'wine cmd' and then run your app in there. I have never had issues with plain printf, don't have experience wit this call.