cc -o yourprog yourprog.c -lstatic
or
cc -o yourprog yourprog.c libstatic.a
More Related Contents:
- Given the state of the stack and registers, can we predict the outcome of printf’s undefined behavior
- How do I make this Linux program compile? [closed]
- Tentative definitions in C and linking
- Is there a way to use gcc to convert C to MIPS?
- Why does GCC create a shared object instead of an executable binary according to file?
- Linker errors when compiling against glib…?
- What’s an object file in C?
- How to compile a static library in Linux?
- gcc will not properly include math.h
- Undefined reference to `initscr’ Ncurses
- What are .a and .so files?
- Convert a Static Library to a Shared Library?
- Why are LIB files beasts of such a duplicitous nature?
- Is a Linux executable “compatible” with OS X?
- How to merge two windows vc static library into one
- Are GCC and Clang parsers really handwritten?
- C function defined as int but having no return statement in the body still compiles
- How do header and source files in C work?
- What is -ffreestanding option in gcc?
- sqrt from math.h causes linker error “undefined reference to sqrt” only when the argument is not a constant
- Why do you have to link the math library in C?
- Why we need Clobbered registers list in Inline Assembly?
- How to build a DLL from the command line in Windows using MSVC
- Compiling multiple C files in a program
- What is the use of .exp and what is the difference between .lib and .dll?
- How do I link object files in C? Fails with “Undefined symbols for architecture x86_64”
- ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] [duplicate]
- How do I build OpenSSL statically linked against Windows runtime?
- library not found for -lrt with QtCreator [mac os]
- Build OpenVPN with specific OpenSSL version