www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - dmd2 mac os x compilation problem

reply "Batuhan =?UTF-8?B?R8O2a3N1Ig==?= <batuhangoksu gmail.com> writes:
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.
Sep 08 2013
next sibling parent Lionello Lunesu <lionello lunesu.remove.com> writes:
On 9/8/13 18:56, "Batuhan Göksu" <batuhangoksu 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.
Sep 08 2013
prev sibling next sibling parent reply Nick Sabalausky <SeeWebsiteToContactMe semitwist.com> writes:
On Sun, 08 Sep 2013 12:56:09 +0200
"Batuhan G=F6ksu" <batuhangoksu gmail.com> wrote:
 [Environment]
=20
 DFLAGS=3D-I/usr/dmd2/src/phobos -I/usr/dmd2/src/druntime/import=20
 -L/usr/dmd2/lib
=20
I'm not on Posix ATM, but I think that last arg is supposed to be: -L-L/usr/dmd2/lib
Sep 08 2013
next sibling parent "Paolo Invernizzi" <paolo.invernizzi gmail.com> writes:
On Sunday, 8 September 2013 at 12:00:22 UTC, Nick Sabalausky 
wrote:
 On Sun, 08 Sep 2013 12:56:09 +0200
 "Batuhan Göksu" <batuhangoksu gmail.com> wrote:
 [Environment]
 
 DFLAGS=-I/usr/dmd2/src/phobos -I/usr/dmd2/src/druntime/import 
 -L/usr/dmd2/lib
 
I'm not on Posix ATM, but I think that last arg is supposed to be: -L-L/usr/dmd2/lib
Yes, it should be -L-L (double checked right now in my OS X). - Paolo
Sep 08 2013
prev sibling parent "Batuhan =?UTF-8?B?R8O2a3N1Ig==?= <batuhangoksu gmail.com> writes:
On Sunday, 8 September 2013 at 12:00:22 UTC, Nick Sabalausky 
wrote:
 On Sun, 08 Sep 2013 12:56:09 +0200
 "Batuhan Göksu" <batuhangoksu gmail.com> wrote:
 [Environment]
 
 DFLAGS=-I/usr/dmd2/src/phobos -I/usr/dmd2/src/druntime/import 
 -L/usr/dmd2/lib
 
I'm not on Posix ATM, but I think that last arg is supposed to be: -L-L/usr/dmd2/lib
Thank you, Nick Sabalausky Now seamlessly compiling.
Sep 08 2013
prev sibling parent "Jacob Carlborg" <doob me.com> writes:
On Sunday, 8 September 2013 at 10:56:11 UTC, Batuhan Göksu wrote:

 .dmg file in the destination directory and the installation 
 does not want to set up.
What errors do you get using the installer? - /Jacob Carlborg
Sep 08 2013