What is the minimal commmand line
way to create an static and a dynamic library with Clang
under Linux
and Windows
, and then, link it against an executable?
Suppose the project contains a main.cpp
file with the main
function, an lib_header.h
file under /include/project_name
and a lib_source.c or lib_source.cpp
under /src
Thanks
-fPIC
for shlibs. – Deportation