Eleno
Eleno

Reputation: 3016

Using the C preprocessor of Visual studio 2015

I would like to invoke a C preprocessor on some arbitrary text (no C code). Can I use the preprocessing facilities of the compiler that comes with Visual Studio 2015? It doesn't come with the cl compiler anymore.

Upvotes: 0

Views: 43

Answers (2)

waaldred
waaldred

Reputation: 1

You can accomplish this via the command line tools that come with Visual Studio (including free versions) if you have C/C++ features installed. Specifically, look for CL.exe which supports preprocessing (/P).

If you're running Windows 10, you also have the option to install the Linux subsystem and run the usual GCC toolset natively as well.

Upvotes: 0

Atom101
Atom101

Reputation: 51

No you cannot use Visual Studio 2015 Instead of this try using any flavor of Linux. It provides gcc compiler that will be helpful in your work. And please elaborate your question for more perfect answer.

Upvotes: 1

Related Questions