Skip to content

Instantly share code, notes, and snippets.

View SofijaErkin's full-sized avatar
🎯
Focusing

Vittore Marcas SofijaErkin

🎯
Focusing
View GitHub Profile
@SofijaErkin
SofijaErkin / A_cmakelists_txtfile_manually_example.md
Created February 22, 2022 00:45
This is a CMakeLists.txt example by manually generating

CMakeLists.txt Manually

This is a manually CMakeLists.txt.

@SofijaErkin
SofijaErkin / A_mainDir_differ_sourDir_makefile.md
Last active March 21, 2022 03:11
C/C++ Function main directory differ from Sources Directory manually makefile

C/C++ Main Directory Differ Sources Directory Makefile Manually

This is a Makefile about Function main directory differing from sources directory.

Amazing Notice:

Please double check the filename of the VSCode configuration file.

e.g:

@SofijaErkin
SofijaErkin / A_seperated_main_from_src_makefile.md
Last active March 25, 2022 01:29
Main C/C++ function seperated from sources files makefile manually

C/C++ Main Seperated from Sources Markfile Manually

This is a Makefile for main function seperated from sources files.

Amazing Notice:

Please double check the filename of the VSCode configuration file.

e.g:

@SofijaErkin
SofijaErkin / A_separated_multiple_source_makefile.md
Last active March 21, 2022 03:11
This is a Makefle.md about separated multiple C/C++ sources manually

Separated Multiple C/C++ Source Makefile Manually(mac)

This is a setup for multiple C/C++ files via Makefile under different folder

to build, compile and debug with VSCode on mac.

Amazing Notice:

Please double check the filename of the VSCode configuration file.

Multiple source files in C

This Gist presents an introduction to a few different ways of working with multiple source files in C, including:

  1. Simple .c source files and .h header files compiled into a .exe
  2. First compiling into .o object files, and then linking together
  3. Makefiles
  4. Statically linked libraries
  5. Dynamically linked libraries

The concepts are demonstrated using gcc (tdm64-1) 5.1.0 on Windows 8.1, using 3 C source files (linkedlist.c, listprimes.c and main.c) and 2 header files (linkedlist.h and listprimes.h), all of which are included at the end. It is assumed that all the source files are saved in a single directory, and any terminal commands are entered in a terminal window open in that same directory.

@SofijaErkin
SofijaErkin / pension_modernization.md
Last active October 30, 2023 01:37
Tired of sickness, pension, medical? Now It's time to pension modernization.
@SofijaErkin
SofijaErkin / launch_pk_attach_launchjson_vscode_manually.md
Created January 25, 2022 03:07
What differs between Launch and Attach in VSCode configuration launch.json?
@SofijaErkin
SofijaErkin / A_multicxxs_same_folder_vscode_mac.md
Last active March 21, 2022 03:11
A multiple C/C++ files under same folder build, compile, debug with VSCode on mac

Multiple C/C++ Same Folder Manually VSCode(mac)

This is a setup for multiple C/C++ files under same folder to build,

compile and debug with VSCode on mac.

Amazing Notice:

Please double check the filename of the VSCode configuration file.

@SofijaErkin
SofijaErkin / a_plan_to_email_hadid_bella.md
Last active August 4, 2023 06:26
A plan to email hadid bella for against depression
@SofijaErkin
SofijaErkin / A_seperated_multicxx_vscode_manually_mac.md
Last active March 21, 2022 23:14
A seperated multiple C/C++ files build, compile and debug with VSCode on mac

Seperated Multiple C/C++ Manually VScode(mac)

This is a setup for multiple C/C++ files under different folder to build,

compile and debug with VSCode on mac.

Amazing Notice:

Please double check the filename of the VSCode configuration file.