gcc -lsome_dynamic_lib code.c some_static_lib.a
More Related Contents:
- Telling gcc directly to link a library statically
- CMake and Static Linking
- Why does the order in which libraries are linked sometimes cause errors in GCC?
- What is the -fPIE option for position-independent executables in gcc and ld?
- libpthread.so.0: error adding symbols: DSO missing from command line
- What are the –start-group and –end-group command line options?
- Use both static and dynamically linked libraries in gcc
- combine two GCC compiled .o object files into a third .o file
- How to apply -fvisibility option to symbols in static libraries?
- GNU gcc/ld – wrapping a call to symbol with caller and callee defined in the same object file
- gcc will not properly include math.h
- How to specify non-default shared-library path in GCC Linux? Getting “error while loading shared libraries” when running
- correct usage of rpath (relative vs absolute)
- Hiding symbol names in library
- Compile with older libc (version `GLIBC_2.14′ not found)
- How to load address of function or label into register
- how to link static library into dynamic library in gcc
- How to use AddressSanitizer with GCC?
- Is it possible to get GCC to read from a pipe?
- What’s the difference between gcc and g++/gcc-c++?
- Exec format error 32-bit executable Windows Subsystem for Linux?
- ARM compilation error, VFP registers used by executable, not object file
- Can CMake use g++ to compile C files?
- How to set the runtime path (-rpath) of an executable with gcc under Mac OSX?
- How do I force cmake to include “-pthread” option during compilation?
- Executable file generated using GCC under cygwin
- CFLAGS, CCFLAGS, CXXFLAGS – what exactly do these variables control?
- CMake: The C Compiler is not able to compile a simple test program
- How to link to a different libc file?
- undefined reference to symbol even when nm indicates that this symbol is present in the shared library