#ifdef _DEBUG
a = "ram";
#else
a = "sam";
#endif
It is working fine in Visual Studio as _DEBUG
is defined in pre-processor, whereas it is not working in Linux even though I gave "-g" option while compiling. What would be the alternative for this? I want the same piece of code for both platforms.