uni

University stuff
git clone git://git.christosmarg.xyz/uni-assignments.git
Log | Files | Refs | README | LICENSE

commit 6c31f753010d0ca3dfebc6e0f13d4c307036f5e9
parent 98509692c30e606049ab14c989b92421e83b1a2d
Author: Christos Margiolis <christos@margiolis.net>
Date:   Wed, 18 Dec 2019 01:43:13 +0200

corrected README

Diffstat:
Massignment-1.4-functions/README.md | 30+++++++++++++++---------------
1 file changed, 15 insertions(+), 15 deletions(-)

diff --git a/assignment-1.4-functions/README.md b/assignment-1.4-functions/README.md @@ -1,25 +1,25 @@ # Compilation, Linking & Execution steps -* ```program``` = program's name -* ```..../``` = full path -* ```$``` = terminal command +* ```program_name``` = program's name +* ```full_path/``` = full path +* ```$``` = terminal command (__don't__ copy it) ## Linux ### Method 1 1. Open a terminal emulator, or the integrated terminal of your editor. -2. Move to the ```src``` directory of the program: ```$ cd ..../assignment-1.4-functions/program/src``` -3. Compile ```main.c``` and ```program-libs.c```: ```$ gcc -c main.c program-libs.c && mv main.o program-libs.o ../obj && cd ../obj``` -4. Link ```main.o``` and ```program-libs.o```: ```$ gcc main.o program-libs.o -lm && mv a.out ../exec && cd ../exec``` +2. Move to the ```src``` directory of the program: ```$ cd full_path/assignment-1.4-functions/program_name/src``` +3. Compile ```main.c``` and ```program_name-libs.c```: ```$ gcc -c main.c program_name-libs.c && mv main.o program_name-libs.o ../obj && cd ../obj``` +4. Link ```main.o``` and ```program_name-libs.o```: ```$ gcc main.o program_name-libs.o -lm && mv a.out ../exec && cd ../exec``` 5. Execute program: ```$ ./a.out``` ### Method 2 1. Open a terminal emulator, or the integrated terminal of your editor. -2. Move to the ```programs``` directory: ```$ cd …./assignment-1.4-functions``` +2. Move to the assignment's directory: ```$ cd full_path/assignment-1.4-functions``` 3. _In case step 4 fails, do this first_: ```$ chmod +x autocompile.sh``` -4. Run the ```autocompile.sh``` script: ```$ ./autocompile.sh program``` +4. Run the ```autocompile.sh``` script: ```$ ./autocompile.sh program_name``` ## Windows @@ -28,17 +28,17 @@ __Requirements:__ MinGW gcc compiler ### Method 1 1. Open Command Prompt, or the integrated terminal of your editor. -2. Move to the ```src``` directory of the program: ```$ cd ..../assignment-1.4-functions/program/src``` -3. Compile ```main.c``` and ```program-libs.c```: ```$ gcc -c main.c program-libs.c && mv main.o program-libs.o ../obj && cd ../obj``` -4. Link ```main.o``` and ```program-libs.o```: ```$ gcc main.o program-libs.o -lm && mv a.out ../exec && cd ../exec``` -5. Execute program: ```$ ./a.exe``` +2. Move to the ```src``` directory of the program: ```$ cd full_path/assignment-1.4-functions/program_name/src``` +3. Compile ```main.c``` and ```program_name-libs.c```: ```$ gcc -c main.c program_name-libs.c && mv main.o program_name-libs.o ../obj && cd ../obj``` +4. Link ```main.o``` and ```program_name-libs.o```: ```$ gcc main.o program_name-libs.o -lm && mv a.out ../exec && cd ../exec``` +5. Execute program: ```$ a.exe``` ### Method 2 1. Open Command Prompt, or the integrated terminal of your editor. -2. Move to the ```programs``` directory: ```cd ..../assignment-1.4-functions``` -3. Run the ```autocompile.bat``` script: ```autocompile``` -4. Enter the name of the program __exactly__ as it's written in the folder when the script prints ```"Program name: "``` +2. Move to the assignment's directory: ```$ cd full_path/assignment-1.4-functions``` +3. Run the ```autocompile.bat``` script: ```$ autocompile``` +4. Enter the name of the program_name __exactly__ as it's written in the folder when the script prints ```"Program name: "```