@TheColorfulGirl,
It depends on who is who in this equation (as what you have here is vaguer than grains of sand in the Sahara desert seen from outerspace).
Guy complimenting girlfriend next to a complete stranger? That's bizarre if you find something wrong with that.
Guy complimenting stranger while wife is standing by? It all depends on what he actually said in his compliment I suppose.