~williamvds/linking-by-example

Resolve undefined parent class method
Templated subclass attempt
Explicit template instantiation

refs

main
browse  log 

clone

read-only
https://git.sr.ht/~williamvds/linking-by-example
read/write
git@git.sr.ht:~williamvds/linking-by-example

You can also use your local clone with git send-email.

#Linking by example

This repository contains examples for a blog post about linking in C & C++: https://williamvds.me/blog/linking-by-example

Results from building, running, and using nm on object files is stored under results/.

#Building

The following will probably only work on Unix-y platforms.

Dependencies include:

  • Bash
  • CMake
  • A C++ compiler
  • nm

I used the following pre-commit hook:

#!/usr/bin/env bash

./build.sh
git add results/

To fully regenerate results, run a rebase which runs the build script between each command:

git rebase -i --force-rebase --root --exec "./build.sh; git add .; git commit --amend --no-edit"