Thread overview | ||||||
---|---|---|---|---|---|---|
|
February 06, 2019 VisualD phobos link error, only when I implement a few simple classes on top of a hello world program. | ||||
---|---|---|---|---|
| ||||
What is this phobos crap? I've tried renaming all my modules with an _ (underscore) in case they were colliding with phobos. ------ Build started: Project: BasicSimpleTypeTheoryApp, Configuration: Debug Win32 ------ Building Win32\Debug\BasicSimpleTypeTheoryApp.exe... LINK : fatal error LNK1104: cannot open file 'phobos32mscoff.lib' Building Win32\Debug\BasicSimpleTypeTheoryApp.exe failed! All I have is two abstract classes essentially with 2 1-line methods, nothing out-of-the ordinary. Thanks. |
February 06, 2019 Re: VisualD phobos link error, only when I implement a few simple classes on top of a hello world program. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | On Wednesday, 6 February 2019 at 17:53:05 UTC, Enjoys Math wrote:
> What is this phobos crap?
>
> I've tried renaming all my modules with an _ (underscore) in case they were colliding with phobos.
>
> ------ Build started: Project: BasicSimpleTypeTheoryApp, Configuration: Debug Win32 ------
> Building Win32\Debug\BasicSimpleTypeTheoryApp.exe...
> LINK : fatal error LNK1104: cannot open file 'phobos32mscoff.lib'
> Building Win32\Debug\BasicSimpleTypeTheoryApp.exe failed!
>
> All I have is two abstract classes essentially with 2 1-line methods, nothing out-of-the ordinary.
>
> Thanks.
Minimal example is now just hello world:
module BasicSimpleTypeTheoryApp;
import std.stdio;
//import _variable;
int main()
{
// auto v = new Variable("v");
writeln("Hello D World!\n");
readln();
return 0;
}
|
February 06, 2019 Re: VisualD phobos link error, only when I implement a few simple classes on top of a hello world program. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | I tried re-installing DMD, and now for either 64-bit or x86 build mode, I'm getting the Phobos linker error: ------ Build started: Project: BasicSimpleTypeTheoryApp, Configuration: Debug x64 ------ Building x64\Debug\BasicSimpleTypeTheoryApp.exe... LINK : fatal error LNK1104: cannot open file 'phobos64.lib' Building x64\Debug\BasicSimpleTypeTheoryApp.exe failed! Details saved as "file://C:\Users\FruitfulApproach\Desktop\_SIMPLE_TYPE_THEORY\BasicSimpleTypeTheoryApp\BasicSimpleTypeTheoryApp\x64\Debug\BasicSimpleTypeTheoryApp.buildlog.html" ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== In other words re-installing didn't help. |
February 06, 2019 Re: VisualD phobos link error, only when I implement a few simple classes on top of a hello world program. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Enjoys Math | On Wed, Feb 06, 2019 at 05:53:05PM +0000, Enjoys Math via Digitalmars-d-learn wrote: > What is this phobos crap? > > I've tried renaming all my modules with an _ (underscore) in case they > were colliding with phobos. > > ------ Build started: Project: BasicSimpleTypeTheoryApp, Configuration: > Debug Win32 ------ > Building Win32\Debug\BasicSimpleTypeTheoryApp.exe... > LINK : fatal error LNK1104: cannot open file 'phobos32mscoff.lib' > Building Win32\Debug\BasicSimpleTypeTheoryApp.exe failed! > > All I have is two abstract classes essentially with 2 1-line methods, nothing out-of-the ordinary. [...] It has nothing to do with colliding identifiers. You're missing a path to Phobos. Probably dmd.conf or some other configuration file doesn't have the correct path defined, or you're missing (the correct version of) the Phobos library file(s) for some reason. T -- Verbing weirds language. -- Calvin (& Hobbes) |
Copyright © 1999-2021 by the D Language Foundation