Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5959713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T18:43:26+00:00 2026-05-22T18:43:26+00:00

I want the compiler to run preprocessing, generate all the .i files like it

  • 0

I want the compiler to run preprocessing, generate all the .i files like it normally does if I just use the “generate preprocessed file” option, and then run an external tool, wait for it to complete, and then go on with the compilation of those .i files (which by now can be modified of course).

If that is not possible, is there a way to run an external tool on every file that is being compiled before preprocessing and compilation? (Would probably be a hell to debug in environment like that, but still).

If there is no option like that, could this even be done at all? I mean, does the compiler even use those .i files, or are they just output for the user somehow?

Basically, is there any way to automatically tamper with the source before it is compiled, but without modifying the actual files?

Just for refs: I am trying to think of a smart way to obfuscate all the strings with minimum modification of the source.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T18:43:27+00:00Added an answer on May 22, 2026 at 6:43 pm

    Let x.cpp be your file you want to preprocess.

    1. Set the compiler option to generate preprocessed output for x.cpp, let it be x.i.
    2. Add the x.i to the project and set the “custom build tool” in the properties. Set the “output files” to x.preprocessed.cpp.
    3. Add x.preprocessed.cpp to the project.

    See msdn for details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use MSVC compiler to build a DLL file. The problem is
I want to use nVIDIA compiler to generate a shared library for my GNU
I want to use a less compiler like dotless as eclipse builder. If I
I want to use Google Closure Compiler(GCC further) for joining my js-files and compressing
Just out of curiosity: I know I can tell the compiler if I want
I want to know how to set default compiler/linker/etc. flags if I use Autoconf/Automake
It looks like the run-time compiler doesn't support the same language as the command-line
I want to run the maven compiler plugin in a different phase and with
I want to do something like this in Haskell, but the compiler is not
At the moment all I want this program to do is run without any

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.