linux - C++ shared library undefined reference to `FooClass ...

linux - C++ shared library undefined reference to `FooClass ...

瀏覽:1283
日期:2025-09-27
g++ -I. -L. -lfoo main.cpp -o main. is the problem. Recent versions of GCC reuqire that you put the object files ......看更多