Razer
Razer

Reputation: 8211

Compile preprocessor output using gcc

I've generated a preprocessor out using the -Ecommand.

Is it possible to compile exactly that generated file using gcc?

Upvotes: 0

Views: 203

Answers (1)

Mat
Mat

Reputation: 206909

Yes, just save the output as a C or C++ file (or whatever the input was).

That's exactly what GCC does, schematically speaking: preprocess, then compile.

Upvotes: 2

Related Questions