Reputation: 409
I do this now by running two commands.
C:\TC\Bin>tcc test.cpp
C:\TC\Bin>test
Is there any way to accomplish this by using just one command?
Upvotes: 1
Views: 541
Reputation: 945
As Basile Starynkevitch said you could write a batch file... This version has error checking for compile errors...
@Echo off
tcc test.cpp
if errorlevel 1 goto FAILED
test.exe
:FAILED
As your project gets more complicated consider using MAKEFILE's
Upvotes: 1