@monroee,
Obviously the dude doesn't contemplate his actions on the ladies (abit immature), i was like that before, now i don't flirt with any woman.i have a friend who has got himself in a fix with married women cause of those compliments. i don't think a head on accusational approach was best. Maybe he liked you and something was building but you gave him a reality check too soon so he struck you down. There is nothing as annoying as being misunderstood. There is a time i complimented a ex and she though i was making a sexual pass at her. i brushed it off, i still think "bitch" when i think of it, and i did get back at her later...
I would have suggested you take a chill, ride the wave, smile at the compliments, even brush them off at times, observe the dude's actions towards other ladies but don't be quick to get your hopes or emotions up/involved before you are really sure. Don't be gullible, thats key.
But remember dating people you work with is a recipe for disaster