'Generate preprocesed file ( .i ) in code blocks

I am following The Cherno C++ series and in this video he is talking about generating .i files. I am an Ubuntu [20.04] user and am making my projects on Code::Blocks. Does any one know how to generate .i files in Code::Blocks?



Solution 1:[1]

actually you can't directly genrate a preprocessor file in Code::Blocks as far as my knowledge go. Because I am also following the same series and I also had this problem { i am also using C::b }, so what you can do is in ubuntu terminal go to that file location by using cd command and then use

gcc -E FileName.c -o FileName.i

command this will genrate the preprocessor file.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Pranjal