From b990733af9d6a07c2130daeb5fd39c75f6804441 Mon Sep 17 00:00:00 2001 From: Manuel Traut Date: Wed, 9 Jan 2019 16:42:49 +0100 Subject: add examples for dynamic linking / loading one example by doing it manually with an ugly Makefile, another one by using autotools. Signed-off-by: Manuel Traut --- schulung_tools/linking/hello/hello.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 schulung_tools/linking/hello/hello.c (limited to 'schulung_tools/linking/hello/hello.c') diff --git a/schulung_tools/linking/hello/hello.c b/schulung_tools/linking/hello/hello.c new file mode 100644 index 0000000..82b8d53 --- /dev/null +++ b/schulung_tools/linking/hello/hello.c @@ -0,0 +1,12 @@ +#include + +void func1(void); +void func2(void); + +int main(void) +{ + func1(); + printf("Hello, world!\n"); + func2(); + return 0; +} -- cgit v1.2.3