NOTE: This can compile and run both C and C++ codes and has FULL support for the graphics library.
NOTE: a UCC workspace is a folder that contains all your working files and folders for UCC. Make sure you don’t use the folder for anything else.
EVERY valid UCC Workspace will contain these folders:
builds/
(this will contain the built EXE files)sources/
(this will contain the C/CPP source code)logs/
(this will contain the build and DosBox logs)files/
(this will contain the files created through C/C++ using filestreams)headers/
(this will contain your custom header files)Here is a video that guides you on how to install Visual Studio Code (a very good code editor) and use it with UCC: https://www.youtube.com/watch?v=WLkYAsEskq8
To use UCC on Windows, download https://github.com/uditkarode/ucc/raw/windows/ucc-windows.zip
Now, make a new folder somewhere, and extract the zip inside it.
After extraction, you must run UCC-INIT.bat
. The file will set up the directory and automatically remove itself.
After this step, you must place your source codes in the sources/ directory.
You can now use UCC-BUILD.bat
, UCC-RUN.bat
, or UCC-BUILD-RUN.bat
to compile, run, or compile and seamlessly run respectively.
This has been tested working on Windows 10.
For advanced users: If you prefer direct command line usage, you can change directory to the assets folder and use ucc this way:
.\bash ucc --build abc.cpp
.\bash ucc --run abc.cpp.EXE
--OR--
.\bash ucc -br abc.cpp
yay/yaourt -S ucc
cd ~
git clone --depth 1 https://github.com/uditkarode/ucc.git
sudo mv ucc/ucc /bin/ucc
sudo chmod +x /bin/ucc
mkdir UCCRoot && cd UCCRoot
mv ~/ucc/BIN .
mkdir builds sources logs files headers
rm -rf ~/ucc
ucc --workspace .
You can now place your source code in the ~/UCCRoot/sources directory.
After setting up UCC, you can compile and run your programs with a command as simple as ucc -br program.cpp
!
For instructions on usage of the script, use ucc --help
In the words of Bob the Builder:
Happy Building!