Thread overview | ||||||
---|---|---|---|---|---|---|
|
May 10, 2015 Cannot find -lphobos | ||||
---|---|---|---|---|
| ||||
I works just fine on Windows, but I am having difficulty figuring out what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the instruction on the Codeblocks Wiki and set the parameters, but when I try to compile, it complains that it can't find Phobos. /usr/bin/ld: cannot find -lphobos2 I've checked the search directories and the library directories are where it says they would be. I am not particularly familiar with Linux so I am not sure how to proceed from here. Any advice? |
May 10, 2015 Re: Cannot find -lphobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Marko Grdinic | On 05/10/2015 12:45 AM, Marko Grdinic wrote:
> I works just fine on Windows, but I am having difficulty figuring out
> what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the
> instruction on the Codeblocks Wiki and set the parameters, but when I
> try to compile, it complains that it can't find Phobos.
>
> /usr/bin/ld: cannot find -lphobos2
>
> I've checked the search directories and the library directories are
> where it says they would be. I am not particularly familiar with Linux
> so I am not sure how to proceed from here.
>
> Any advice?
dmd's -v flag may give some clues:
$ dmd foo.d -v
dmd outputs the config file that it uses and the linker flags that it passes.
Ali
|
May 10, 2015 Re: Cannot find -lphobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to Ali Çehreli | On Sunday, 10 May 2015 at 14:41:17 UTC, Ali Çehreli wrote:
> On 05/10/2015 12:45 AM, Marko Grdinic wrote:
>> I works just fine on Windows, but I am having difficulty figuring out
>> what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the
>> instruction on the Codeblocks Wiki and set the parameters, but when I
>> try to compile, it complains that it can't find Phobos.
>>
>> /usr/bin/ld: cannot find -lphobos2
>>
>> I've checked the search directories and the library directories are
>> where it says they would be. I am not particularly familiar with Linux
>> so I am not sure how to proceed from here.
>>
>> Any advice?
>
> dmd's -v flag may give some clues:
>
> $ dmd foo.d -v
>
> dmd outputs the config file that it uses and the linker flags that it passes.
>
> Ali
additionally if not using dmd it may have the libraries named differently.
a quick google says Bodhi linux is based on Ubuntu which doesn't ship dmd due to licensing issues AFAIK.
|
May 10, 2015 Re: Cannot find -lphobos | ||||
---|---|---|---|---|
| ||||
Posted in reply to weaselcat | Your advice worked, thanks. It turns out that from the command line it compiles and links just fine.
Codeblocks is the thing that is giving me trouble. It might have something to do that I am using the old Codeblocks 8.0 version. I would like to get the newest version but the Virtual Box OS is outdated and the package manager won't let me get anything newer.
I downloaded the Codeblocks 13 tar manually and unpacked it, but Gdebi can't resolve the missing dependencies (even though they are right there in the directory.) It worked fine for Dmd.
Any advice for this?
On Sunday, 10 May 2015 at 15:33:24 UTC, weaselcat wrote:
> On Sunday, 10 May 2015 at 14:41:17 UTC, Ali Çehreli wrote:
>> On 05/10/2015 12:45 AM, Marko Grdinic wrote:
>>> I works just fine on Windows, but I am having difficulty figuring out
>>> what the trouble is on my Bodhi 1.4 Virtual Box. I've followed the
>>> instruction on the Codeblocks Wiki and set the parameters, but when I
>>> try to compile, it complains that it can't find Phobos.
>>>
>>> /usr/bin/ld: cannot find -lphobos2
>>>
>>> I've checked the search directories and the library directories are
>>> where it says they would be. I am not particularly familiar with Linux
>>> so I am not sure how to proceed from here.
>>>
>>> Any advice?
>>
>> dmd's -v flag may give some clues:
>>
>> $ dmd foo.d -v
>>
>> dmd outputs the config file that it uses and the linker flags that it passes.
>>
>> Ali
>
> additionally if not using dmd it may have the libraries named differently.
> a quick google says Bodhi linux is based on Ubuntu which doesn't ship dmd due to licensing issues AFAIK.
|
Copyright © 1999-2021 by the D Language Foundation