www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - VisualD phobos link error, only when I implement a few simple classes

reply Enjoys Math <enjoysmath gmail.com> writes:
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.
Feb 06 2019
next sibling parent reply Enjoys Math <enjoysmath gmail.com> writes:
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; }
Feb 06 2019
parent Enjoys Math <enjoysmath gmail.com> writes:
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.
Feb 06 2019
prev sibling parent "H. S. Teoh" <hsteoh quickfur.ath.cx> writes:
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)
Feb 06 2019