On gcc, use ar -t
.
-t
option of the gnu archiver (ar) writes a table of contents of archive to the standard output. Only the files specified by the file operands shall be included in the written list. If no file operands are specified, all files in archive shall be included in the order of the archive.
Related Contents:
- Linking libstdc++ statically: any gotchas?
- What does an object file contain?
- How do I list the symbols in a .so file
- Undefined reference to vtable
- Error “undefined reference to ‘std::cout'”
- Constructor initialization-list evaluation order
- Why does flowing off the end of a non-void function without returning a value not produce a compiler error?
- What are the GCC default include directories?
- How to compile a static library in Linux?
- error: use of deleted function
- How does #include work in C++? [duplicate]
- How to remove unused C/C++ symbols with GCC and ld?
- /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.15′ not found
- experimental::filesystem linker error
- Is there a compiler hint for GCC to force branch prediction to always go a certain way?
- How did I get a value larger than 8 bits in size from an 8-bit integer?
- Dual emission of constructor symbols
- How to view symbols in object files?
- Precompiled headers with GCC
- How to define a string literal in gcc command line?
- generates same number in Linux, but not in Windows
- How to instruct GCC to stop after 5 errors?
- Can I use C++11 with Xcode?
- Big difference (x9) in the execution time between almost identical code in C and C++
- “relocation R_X86_64_32S against ” linking Error
- std::put_time implementation status in GCC?
- When can compiling c++ without RTTI cause problems?
- How to force GCC to assume that a floating-point expression is non-negative?
- Linker error: “linker input file unused because linking not done”, undefined reference to a function in that file
- Is this C++11 regex error me or the compiler?
- Single, double quotes and sizeof(‘a’) in C/C++
- Using C++11 futures: Nested calls of std::async crash: Compiler/Standard library bug?
- The proper way of forcing a 32-bit compile using CMake
- Search a vector of objects by object attribute
- Is a program compiled with -g gcc flag slower than the same program compiled without -g?
- Is RVO (Return Value Optimization) applicable for all objects?
- Handling stdafx.h in cross-platform code
- Strange uses of movzx by Clang and GCC
- Where can I find an official reference listing the operation of SSE intrinsic functions?
- Cross-compilation for Raspberry Pi in GCC. Where to start?
- Best practices for debugging linking errors
- VS Code will not build c++ programs with multiple .ccp source files
- How to improve Visual C++ compilation times?
- Can nullptr be emulated in gcc?
- Why doesn’t GCC optimize out deletion of null pointers in C++?
- Learning to read GCC assembler output
- Can I link a plain file into my executable? [duplicate]
- When will Gnu C++ support C++11 without explicitly asking for it?
- What does vectorization mean?
- Using AVX intrinsics instead of SSE does not improve speed — why?