Hi Antonio, You can use this GCC-ism: #pragma GCC poison foo When foo is used, the compiler will complain. It doesn't allow you to provide additional output text, though. I think that would be a nice enhancement... #pragma GCC poison foo "use bar() instead" And I'm not sure if this #pragma GCC poison facility plays nice with C++ namespaces. HTH, --Eljay