/
Linking an Executable - Example

Linking an Executable - Example

Linking in C/C++ is the process of combining compiled object files and libraries into a single executable program.

llvm-g++ main.o testFifo.o ../TEST/library.lib ../COL/library.lib -o test 
  • The output binary is called test - we are using the -o flag.

  • The inputs are two object files and two library files.

In POSIX executables have no extension. In Windows they typically end in *.exe.

Related content

Dependency Tree
Dependency Tree
More like this
Registering SSH Keys for GIT Authentication - Video Example
Registering SSH Keys for GIT Authentication - Video Example
Read with this
Static C library - and how we link and create them.
Static C library - and how we link and create them.
More like this
Excluding platform specific files for a build
Excluding platform specific files for a build
Read with this
Simple make system - putting it all together
Simple make system - putting it all together
More like this
make wildcard matching list of files
make wildcard matching list of files
Read with this