#5 Cannot find Object.d

open
nobody
None
5
2007-10-06
2007-10-06
M Gagnon
No

Hi,

I installed gdc 0.24 on my computer. When trying to build D code, however, i get the following error:

object.d: module object cannot read file 'object.d'

this is quite easily fixed with flags:

-I/usr/local/include/d/4.0.1/ -I/usr/local/include/d/4.0.1/powerpc-apple-darwin8

However, when building D apps from makefiles or DSSS i get this same error, and then it is really annoying that it doesn't work by default. It also suggests that the default behaviour of GDC should be to find these files automatically.

Is it normal, and is there a fix? I installed GDC in /usr/local/, i guess this may be a possible source of error. I prefer not to install stuff in /usr.

Thanks

Discussion

  • Anders F Björklund

    Logged In: YES
    user_id=5895
    Originator: NO

    Sorry, this is a bug in the installer that it doesn't create the required GCC paths when installing to something other than the default "/usr" location. GDC tries to find the files by using a relative path, but that only works when the original starting point actually exists on file (but it being empty is OK)

    i.e. it looks in something like /usr/local/lib/gcc/../../include/d, when installing in /usr/local. But creating the directory should be enough to make it function, that is: `sudo mkdir -p /usr/local/lib/gcc/i686-apple-darwin8/4.0.1 /usr/local/lib/gcc/powerpc-apple-darwin8/4.0.1`

    HTH

     
  • M Gagnon

    M Gagnon - 2007-10-07

    Logged In: YES
    user_id=1688878
    Originator: YES

    I have no clue how that fix can possibly work but it did :) thanks (hope the bug is fixed for next released)

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks