In The Fellowship of the Ring, Glóin and Gimli attend the Council of Elrond to discuss the One Ring. Legolas is also in attendance.
In the movies at least, Legolas is a major part of the story and is a major factor in allowing the Dwarves to reach Erebor. Plus it's only about 60 years between the end of the events of The Hobbit and the creation of the Fellowship of the ring and those events aren't something either a dwarf or an elf would forget very easily.
So, my question is actually a two parter. Why is Glóin so hostile towards Legolas and the elves during the Council of Elrond? And why do the two not even acknowledge each other? I don't remember exactly, but I'm fairly certain that Legolas wasn't a part of the events of The Hobbit in the book. Should I just chalk this up to movie inconsistency?