I think I have looked the problem. kdevelop use the $ for delimit the fragments of code, so I think that is the problem with the libtool. I have changed the $ for other character, the '¡' in my case, and my projects compiles.
You can change the character in Preferences->Configure Kdevelop...->Fragments of Code (Sorry if is wrong, my kdevelop is in Spanish).
I think I have looked the problem. kdevelop use the $ for delimit the fragments of code, so I think that is the problem with the libtool. I have changed the $ for other character, the '¡' in my case, and my projects compiles.
You can change the character in Preferences- >Configure Kdevelop. ..->Fragments of Code (Sorry if is wrong, my kdevelop is in Spanish).
I hope help someone