Compère was born in Péronne, Somme. In 1794, he was promoted to "chef de brigade", the equivalent of colonel. On 1 May 1794, he was promoted to general of brigade. He was part of the Army of the Danube crossing into the southwest German states in 1799, and participated in the Battle of Ostrach and the Battle of Stockach.