Actually the integral of dl is definite, so you don't need to include + C.
Ignore the wire for a second. Imagine all you are doing is integrating a cylinder (while not considering the two end faces, just considering the body). This cylinder has a radius R. l is an infintesimal slice of this...