Hacker News new | ask | show | jobs
by cozzyd 2604 days ago
If you're on a Linux system, learn how to use Makefiles for building since they're generally useful for lots of things. Cmake is becoming more common and does some good things, but I find it very hard to use/debug (and you might find yourself debugging the Makefiles it generates anyway). It helps if you already know how to compile/link C programs...

How to incorporate external libraries depends on if they're header-only, shared libraries, or static libraries (do people still use static libraries?). pkg-config is your friend!

1 comments

Most embedded systems do not support dynamic linking.

Plus unless you are doing plugins, dynamic linking is an attack vector.

Fair enough! Although the tooling for embedded systems is usually some crazy black art! (I only have experience with mbed and energia systems).