How can i set files for stdin and stdout in codeblocks ide. I would be better if i can set them different for each build target. It may be linux only solution.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Well this is not an IDE problem per se and you will need to solve this by coding.
But assuming you have two build targets in CodeBlocks named “Debug” and “Release”.
Go to Project->Build Options->Compiler Settings->#defines
For Debug Target give a macro like : FOO_DEBUG and for Release: FOO_RELEASE
Finally somewhere in the initialization of your program differentiate between the different build targets like so: