Can someone please help me with finding out how might I view the preprocessor output with build.exe?
I am looking for a way to pass /E to cl.exe.
I tried set USER_C_FLAGS=-E , but did not get the expected output (the object files were not generated but it did not print the preprocessor output to stdout as well.)
Thanks and regards,
Geeta
Use /P which will write the output to a file. Neither /E or /P create
object files, you have to remove the option and run the build again.
–
Don Burn (MVP, Windows DDK)
Windows 2k/XP/2k3 Filesystem and Driver Consulting
Website: http://www.windrvr.com
Blog: http://msmvps.com/blogs/WinDrvr
Remove StopSpam to reply
wrote in message news:xxxxx@ntdev…
> Can someone please help me with finding out how might I view the
> preprocessor output with build.exe?
> I am looking for a way to pass /E to cl.exe.
> I tried set USER_C_FLAGS=-E , but did not get the expected output (the
> object files were not generated but it did not print the preprocessor
> output to stdout as well.)
>
> Thanks and regards,
> Geeta
>
xxxxx@yahoo.com wrote:
Can someone please help me with finding out how might I view the preprocessor output with build.exe?
I am looking for a way to pass /E to cl.exe.
I tried set USER_C_FLAGS=-E , but did not get the expected output (the object files were not generated but it did not print the preprocessor output to stdout as well.)
Assuming you have xxx.c:
Quick method number one:
* set CL=/P
* build
* Read the file xxx.i file
* set CL=
Quick method number two:
* nmake xxx.pp
That last little hint was courtesy of Tanya Radeva at the DDC this week.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
Thank you!
nmake xxx.pp worked for me.
Thanks a lot Tim - I’m very glad to see the information that we provided at DDC already in use!
When you generate a .pp file with the method number two make sure you run “nmake xxx.pp” from the same folder where your sources file resides.
-Tanya
-Tanya
xxxxx@microsoft.com wrote:
Thanks a lot Tim - I’m very glad to see the information that we provided at DDC already in use!
See? We WERE paying attention! We weren’t just there for the free food…
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.