to add a library named Awesome from Github, at the branch dev-branch in lib/awesome subdirectory.

Then, you can easily update all your submodules by typing:

$ git submodule foreach git pull

Input from User

Include your input in your code by adding in your code (e.g. "age" as input):

int age; /* Declare variable */
cin >> age; /* Use it as an input */

C++11

C++11 is supported, since you can pass your own arguments to compile C++ files.
To do so, you can use the Linux Terminal below your editor and type: `

g++ -std=c++11 your_file.cpp -o your_program

given that you have a file named your_file.cpp. Then, you can run your file using ./your_program.
The "Run File" button does not support such command line arguments, since it is meant to be as simple as possible.

If you would like to have more complex builds, you can either use "make" linux command, or create a bash script containing any commands you want to use for compiling and running your program, i.e. the commands above.
In such case, you can use the "Run File" button on the bash script and execute it without using the terminal.

Dynamic linking

Dynamic linking allows you to include libraries that lie at your computer at
runtime. One of the most common libraries, i.e. is _math.h_. In order to include
math.h in your program, you'll need to dynamically link it.

Including existing dynamic libraries

In order to include an existing dynamic library, such as _math.h_, you just
need to compile your program using -lm flags.

As an example, let's say you have a simple file called _sqrt.cpp_ with the
following code:

Creating your own dynamic library

Apart from using standard dynamic libraries, like _math.h_, you can create your own.

Creating an object file

First, you'll need to compile an object file from your library, let's say that your library is called _fun.cpp_:

gcc -c -Wall -Werror -fpic fun.cpp

Creating a shared library

Making your object file a shared library (it should start with lib and end with .so)

gcc -shared -o libfun.so fun.o

Compile your file

Now you can dynamically link fun library at compile time. Let's call your main file __main.cpp__

gcc -L. -Wall -o test main.cpp -lfun -lm

Adding /mnt/project to the dynamic library search path

Trying to run your file now will raise an exception. This is because the linker does not know where to search for the dynamic library you just created. All we need to do now is add the directory of the dynamic library we just created - assuming it is_/mnt/project_ - to the dynamic library search path. We do so using the LD_LIBRARY_PATH environment variable, before running the executable.

LD_LIBRARY_PATH=/mnt/project:$LD_LIBRARY_PATH ./test

Statically exporting LD_LIBRARY_PATH

In order to avoid defining _LD_LIBRARY_PATH_every time you want to run your executable, you could just export it statically for every Terminal session. To do so, just paste the following command in your Terminal.