Skip to main content
gamedev.net
🔒 Locked

Using the VC++ Compiler within my code

Started by Sash Dec 6, 2002 at 8:55 PM 2 replies 200+ views
Original Post
Sash
Sash
I''m just curious if there is any way to use the VC++ Compiler within my code. I would like to create a program that runs through a group of source files and checks them for errors... Any ideas? Thanks -Sash -5
-Sash-5
Premandrake
Premandrake
There is a command line compiler for visual c++ called cl.exe. You could run that on files and parse the errors.

I''m not sure if it exposes a COM interface or something similar, but haven''t seen anything about that.
Sash
Sash
Thanks Preman, I''ll give that a try.

-Sash
-5
-Sash-5
Fruny
Fruny
You might want to have a look at the make utility and makefiles in general.

MSVC ships with a variant : nmake.


[edited by - Fruny on December 7, 2002 9:42:19 AM]
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.