Filename |
Contents |
Makefile.am | noinst_LIBRARIES = libStatic.a libStatic_a_SOURCES = hello.c |
hello.c | #include <stdio.h> void sayHello(void) { printf("Hello World! \n"); } |
hello.h | void sayHello(void); |
Filename |
Contents |
main.c |
#include <stdarg.h> #include "libStatic/hello.h" // from "libStatic" our example of an internal statically linked library for side4linux int main(int argc, char *argv[]) { sayHello(); // calling a function from our new library return(0); } |