fbc icon indicating copy to clipboard operation
fbc copied to clipboard

dynamic library as input file

Open DTJF opened this issue 5 years ago • 0 comments

The compiler accepts static libraries as input files (suffix '.a' on LINUX). But it doesn't allow dynamic libraries (suffix '.so' on LINUX), although the linker can handle them. fbc throughs the message "error 80: Invalid command-line option".

There's a simple workaround by just creating a proper symlink. But that complicates auto-build scripts for management systems like CMake. This looks unprofessional.

A solution is pretty simple: just allow dynamic libraries (files ending by .so) as input files and treat them like a static library.

Why is it important? -> When using fbc in a project that builds a shared library, the project may contain example code. In order to compile that code the project management system wants to link against the (uninstalled) fresh binary, but fbc currently doesn't allow that.

Regards

DTJF avatar May 17 '19 09:05 DTJF