I am programming a little engine and I want to implement a debug mode. I tried to write to the console when I am linking the file with #include but it doesn't work. Here what I am trying to do :
main.cpp
#ifdef _DEBUG
    #include "debug.h"
    #include "vld.h"
#endif
int main(int argc, char** argv){
    // some code
    return 0;
}
Debug.h
#ifndef __DEBUG_H
#define __DEBUG_H
    #include <iostream>
    #ifdef _DEBUG
        std::cout << "DEBUG MODE" << std::endl;
    #endif
#endif
I kept only the code that was essential. I do understand that I need to execute the std::cout inside the main but I can't because I want the DEBUG MODE to be printed first in the console. The #include vld.h is an external header file that does what I am trying to do ( I don't have access to that file ).
