If I understand your question correctly you want to use wineg++ instead of g++. We run linux apps that use Wine APIs all the time and that's the key tool.
I can't give you specific commands that work because I am working in an older "vintage" but you should be able to sort it out. wineg++ has a -v option that is very useful for sorting out what's going on.
- mo