Cannot find Object.d
Status: Inactive
Brought to you by:
afb
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
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
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)