dmd2 mac os x compilation problem

Lionello Lunesu lionello at lunesu.remove.com
Sun Sep 8 04:56:04 PDT 2013


On 9/8/13 18:56, "Batuhan Göksu" <batuhangoksu at gmail.com>" wrote:
> Hi Friends,
>
> dmd2 files downloaded at this address.
>
> I took the files to the destination directory in this way.
>
> /usr/dmd2
> /usr/dmd2/bin
> /usr/dmd2/lib
> /usr/dmd2/man
> /usr/dmd2/src
>
> edited config file.
>
> [Environment]
>
> DFLAGS=-I/usr/dmd2/src/phobos -I/usr/dmd2/src/druntime/import
> -L/usr/dmd2/lib
>
> A simple example code.
>
> import std.stdio;
>
> void main()
> {
>      writeln("Hello World");
> }
>
> Giving this error when I want to compile.
>
> ld: library not found for -lphobos2
> collect2: ld returned 1 exit status
> --- errorlevel 1
>
> needed to do to solve this problem?
>
> .dmg file in the destination directory and the installation does not
> want to set up.
>
> sincerely.

Can you try with -m64? You might only have the 64-bit phobos library.

L.


More information about the Digitalmars-d mailing list