FreeBSD linking problem

Jacob Carlborg doob at me.com
Thu Aug 11 23:52:56 PDT 2011


On 2011-08-11 16:10, s4mmael wrote:
> Dr. Adam Ruppe and Jacob Carlborg,
>
> Thank you very much for your help!
>
>
>
> An error now is as follows:
> # dmd2 -run qqq.d
> /usr/bin/ld: cannot find -lphobos2
> --- errorlevel 1
>
> # cat /usr/local/etc/dmd2.conf
>
> [Environment]
>
> DFLAGS=-I/usr/local/include/d/phobos2 -I/usr/local/include/d/druntime/import
> -L-L/usr/local/lib32 -L-L%@P%/../lib64 -L--export-dynamic -L-lrt

Seems it cannot find libphobos2.a in any of the specified search paths. 
The specified search paths are:

/usr/local/lib32
%@P%/../lib64

Where %@P% is relative to the binary. Also all the search paths for all 
the regular C libraries: /usr/lib, /usr/local/lib and so on, don't know 
the exact search paths on FreeBSD.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list