Compilation errors when integrating c++, kdb and RInside.

I am trying to use kdb, c++ and use R for stats purposes. I tried using RInside to call R code from c++.
But when k.h is included in the examples given with RInside, I get compilation errors.

Anybody experienced this before?

Regards,

I think it was a name conflict. As soon as I changed RInside R(argc, argv) to RInside L(argc, arv). everything worked.