building and linking a shared library
问题 im trying to build a shared library on a windows cygwin platform using g++, and later link it with another cpp file: i use the following commands: // generate object file g++ -g -c -Wall -fPIC beat11.cpp -o beat11.o // to generate library from the object file g++ -shared -Wl,-soname,libbeat.so.1 -o libbeat.so.1.0.1 beat11.o -lc // to link it with another cpp file; -I option to refer to the library header file g++ -L. -lbeat -I . -o checkbeat checkbeat.cpp while linking, the following error