¡@

Home 

c++ Programming Glossary: if_debug_enabled

Header guards do not seem to work?

http://stackoverflow.com/questions/18579340/header-guards-do-not-seem-to-work

When I compile the error it shows multiple definition of IF_DEBUG_ENABLED . Kindly tell me what is actually I'm doing wrong. Also please.. #define CONSTANT_H const char APP_NAME ymcmcb const bool IF_DEBUG_ENABLED true #endif CONSTANT_H debug.h #ifndef DEBUG_H #define DEBUG_H.. debug.h #include QDebug static void Log QString Message if IF_DEBUG_ENABLED qDebug Message It says problem is here main.cpp #include constant.h..