Gabon became only the fourth hosts to exit the Africa Cup of Nations at the group stage after a 0-0 draw with Cameroon, who reach the quarter-finals.
Pierre-Emerick Aubameyang missed a great chance for Gabon early on when he bundled the ball wide from two yards.
His team-mate Denis Bouanga brought saves from Fabrice Ondoa as Gabon poured forward in the early stages.
Bouanga was denied a last-gasp winner, that would have put Gabon through, when his shot crashed back off the post.
The rebound sat up perfectly for Didier N’Dong but his shot was pushed over the bar brilliantly by Cameroon goalkeeper Ondoa as he was picking himself up the floor.
Gabon went into the game knowing they had to win to guarantee their qualification from Group A but they go out of the competition after three draws.
Burkina Faso are the other quarter-finalists from the group after they beat debutants Guinea-Bissau 2-0, a result which put them top of the table above Cameroon by goal difference.