It is not hard...
set up compiler....
create project...
Set compiler for project...
set compiler flags...
set link libraries....
compile...
upload with your favorite tool...
if you need a more detailed instruction we need more info... operating system, Compiler, compiler version, standard library, linker, linker script but most YOUR CONTROLER.... your upload environment, your debugger environment for debugging ecc.... Your post gives exactly 0 information to help you....
and it is simply, have done it 100 times...