Adding libraries to an executable

Jacob Carlborg doob at me.com
Thu Sep 12 09:48:39 PDT 2013


On 2013-09-12 18:25, Anton Alexeev wrote:

> [Environment]
>
> DFLAGS=-I/usr/include/dmd/phobos -I/usr/include/dmd/druntime/import
> -L-L/usr/lib/i386-linux-gnu -L-L/usr/lib/x86_64-linux-gnu
> -L--no-warn-search-mismatch -L--export-dynamic

I don't see way explicitly linking with Phobos would make a difference, 
since the compiler will link with Phobos implicitly. That assumes you 
have libphobos2.a in /usr/lib/i386-linux-gnu or /usr/lib/x86_64-linux-gnu.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list