How to view the list of symbols (functions, classes) in a .so file on Linux?
Hi everyone! I'm new to C++ and just started learning about dynamic libraries (.so) on Linux. I have a library compiled from several files. I want to check which functions and classes it exports, i.e., which symbols are available for other programs.
Problem: I compiled my library `libmylib.so` with g++, but when I try to link it with a test program, the linker gives "undefined reference" errors. I suspect that function names are being mangled or I didn't declare them as extern "C" correctly.
Example code I use to build the library:
```cpp
// mylib.h
#pragma once
void hello();
int add(int a, int b);
```
```cpp
// mylib.cpp
#include "mylib.h"
#include
void hello() {
std::cout << "Hello fro