about pass registration

hello sir

i have created LoopPass but now i am facing problem in Registering that pass.

I read all the documents & followed the procedure but its giving error.

Can you tell me what is the right way to register a pass.

I am getting errors like

char::ID=0 “ID” is not in the scope

{anonymous::PrintLoopPass something like}

please help me

This is a compile time error?

It’s hard to tell without seeing the code, but it looks like the definition of your ID variable isn’t in the correct namespace. – John T.