The workspace contains two folders by default, where:
src: the folder to maintain sourceslib: the folder to maintain dependencies
finally this workspace contains srp folder, that contains a few scripts, These are: (they are in both .bat and .sh formats)
clearcompilerundev-
- Dont run these from the srp folder directly
-
- Copy them into the main folder where
srcandlibfolder exist
- Copy them into the main folder where
-
-
- then you can run them directly by clicking or from command prompt relatively
-
srp\run.batRunning "run.bat" directly from main/master folder if the bat file is also in the main/master folder (or you can run it by double clicking {but not from srp folder !!} )
run.bat
You must have clang compiler in your system and the bin folder of the compiler must be added to the environment PATH variable
run these bat[windows] or bash[linux] script in this order
- clear [ clears the previous compiled objects(if exists) and binary files ]
- compile [ compiles the "*.cpp" files --> "app" file ][or maybe not]
- run [ starting with this will work; cause the compiled binary is given ]
after compiling it is recommended to run the console app by :
./appinstead of ./run.sh
cause, this way you can pass arguments to the app
like --> ./app apple
here ^ "apple" is passed to the app when running
- A C++ compiler must be installed and available in your PATH:
- For C++ Compilers: Visit This Link
if you wanna use gcc or g++ if they are already installed and added to environment variable path Then replace all "clang++" to "gcc" or "g++" inside all these ".bat" and ".sh" files carefully Then it will use gcc or g++ instead.