www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ide - Dexed Fails to Link on x86_64 Windows

reply Ruby The Roobster <michaeleverestc79 gmail.com> writes:
Following all of the steps for building on windows, I get the 
following linker error:

```
dexed-d.obj : error LNK2019: unresolved external symbol 
__imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
function ldc.dllimport_relocation
```

I'm using LDC 1.32.0.
Linker used is the Microsoft linker, not sure if that matters.
Jul 22 2023
next sibling parent user1234 <user12324 12.de> writes:
On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
hi, you might have reached https://gitlab.com/basile.b/dexed/-/issues/116
Jul 24 2023
prev sibling next sibling parent harakim <harakim gmail.com> writes:
On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
I'm by no means an expert on the compiler toolchain, but if it were me, I would try upgrading to LDC 1.33 because it's low effort and a reasonable chance of success. std.experimental.logger is deprecated, so it might have been removed. ldc.dll looks like it's ldc, but that's where I might be mistaken.
Jul 24 2023
prev sibling next sibling parent reply harakim <harakim gmail.com> writes:
On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
I just went through the build process with 1.33.0 and it also failed: lld-link: error: undefined symbol: __declspec(dllimport) ModuleInfo for std.experimental.logger
Jul 24 2023
next sibling parent harakim <harakim gmail.com> writes:
On Tuesday, 25 July 2023 at 06:20:37 UTC, harakim wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```
```lld-link: error: undefined symbol: __declspec(dllimport) ModuleInfo for std.experimental.logger```
You can see that all of the code was moved to std.logger, which makes sense and it was publicly imported, which seems ideal: https://github.com/dlang/phobos/blob/master/std/experimental/logger/core.d I was wondering if because the module is empty, it does not generate a ModuleInfo struct. Should the problem be solved in the library or in the calling code?
Jul 24 2023
prev sibling next sibling parent "Richard (Rikki) Andrew Cattermole" <richard cattermole.co.nz> writes:
On 25/07/2023 6:20 PM, harakim wrote:
 I just went through the build process with 1.33.0 and it also failed: 
 lld-link: error: undefined symbol: __declspec(dllimport) ModuleInfo for 
 std.experimental.logger
I talked with Basile about this yesterday, it appears to be related to the dllimport override switch. https://gitlab.com/basile.b/dexed/-/issues/116 A fix relating to dllimport override switch has already been discussed, but not yet tested.
Jul 24 2023
prev sibling parent Ruby The Roobster <michaeleverestc79 gmail.com> writes:
On Tuesday, 25 July 2023 at 06:20:37 UTC, harakim wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
I just went through the build process with 1.33.0 and it also failed: lld-link: error: undefined symbol: __declspec(dllimport) ModuleInfo for std.experimental.logger
I'm getting basically the same error with MSVC.
Jul 28 2023
prev sibling parent reply Basile B. <b2.temp gmx.com> writes:
On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
Since [those changes](https://gitlab.com/basile.b/dexed/-/commit/052e49aa35f7c2097bd714033a5ac75dac5fe992#9d1e5b64717091f93d3582fa811 e60b73160ccf_15_13) that should ~~work~~ compile (I admit I have not tested to see if that even runs) now.
Aug 10 2023
parent reply Basile B. <b2.temp gmx.com> writes:
On Thursday, 10 August 2023 at 10:29:13 UTC, Basile B. wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced in 
 function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
Since [those changes](https://gitlab.com/basile.b/dexed/-/commit/052e49aa35f7c2097bd714033a5ac75dac5fe992#9d1e5b64717091f93d3582fa811 e60b73160ccf_15_13) that should ~~work~~ compile (I admit I have not tested to see if that even runs) now.
Actually I will tell you a little story. Trust it or dont. So I was on IRC, in contact with Richard, trying to fix the problem. So it was like "if I do that that will be ok ?" which I did. But there was still many error messages...So I was a bit upset like "that still does not work..." It turns out that this worked... but the linker output 3000 lines of warnings..
Aug 10 2023
next sibling parent Basile B. <b2.temp gmx.com> writes:
On Thursday, 10 August 2023 at 22:38:06 UTC, Basile B. wrote:
 On Thursday, 10 August 2023 at 10:29:13 UTC, Basile B. wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced 
 in function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
Since [those changes](https://gitlab.com/basile.b/dexed/-/commit/052e49aa35f7c2097bd714033a5ac75dac5fe992#9d1e5b64717091f93d3582fa811 e60b73160ccf_15_13) that should ~~work~~ compile (I admit I have not tested to see if that even runs) now.
Actually I will tell you a little story. Trust it or dont. So I was on IRC, in contact with Richard, trying to fix the problem. So it was like "if I do that that will be ok ?" which I did. But there was still many error messages...So I was a bit upset like "that still does not work..." It turns out that this worked... but the linker output 3000 lines of warnings..
that's why compiler warnings are bad ;)
Aug 10 2023
prev sibling parent reply Bienlein <jeti789 web.de> writes:
On Thursday, 10 August 2023 at 22:38:06 UTC, Basile B. wrote:
 On Thursday, 10 August 2023 at 10:29:13 UTC, Basile B. wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 Following all of the steps for building on windows, I get the 
 following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced 
 in function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that matters.
Since [those changes](https://gitlab.com/basile.b/dexed/-/commit/052e49aa35f7c2097bd714033a5ac75dac5fe992#9d1e5b64717091f93d3582fa811 e60b73160ccf_15_13) that should ~~work~~ compile (I admit I have not tested to see if that even runs) now.
Actually I will tell you a little story. Trust it or dont. So I was on IRC, in contact with Richard, trying to fix the problem. So it was like "if I do that that will be ok ?" which I did. But there was still many error messages...So I was a bit upset like "that still does not work..." It turns out that this worked... but the linker output 3000 lines of warnings..
If there is a working executable, could it be placed on some location from which it can be grabed? Maybe from https://gitlab.com/basile.b/dexed?
Nov 08 2023
parent reply Bienlein <jeti789 web.de> writes:
On Wednesday, 8 November 2023 at 08:22:16 UTC, Bienlein wrote:
 On Thursday, 10 August 2023 at 22:38:06 UTC, Basile B. wrote:
 On Thursday, 10 August 2023 at 10:29:13 UTC, Basile B. wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 Following all of the steps for building on windows, I get 
 the following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced 
 in function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that 
 matters.
Since [those changes](https://gitlab.com/basile.b/dexed/-/commit/052e49aa35f7c2097bd714033a5ac75dac5fe992#9d1e5b64717091f93d3582fa811 e60b73160ccf_15_13) that should ~~work~~ compile (I admit I have not tested to see if that even runs) now.
Actually I will tell you a little story. Trust it or dont. So I was on IRC, in contact with Richard, trying to fix the problem. So it was like "if I do that that will be ok ?" which I did. But there was still many error messages...So I was a bit upset like "that still does not work..." It turns out that this worked... but the linker output 3000 lines of warnings..
If there is a working executable, could it be placed on some location from which it can be grabed? Maybe from https://gitlab.com/basile.b/dexed?
Sorry, I meant a working executable for Windows.
Nov 08 2023
parent reply Bienlein <jeti789 web.de> writes:
On Wednesday, 8 November 2023 at 08:23:02 UTC, Bienlein wrote:
 On Wednesday, 8 November 2023 at 08:22:16 UTC, Bienlein wrote:
 On Thursday, 10 August 2023 at 22:38:06 UTC, Basile B. wrote:
 On Thursday, 10 August 2023 at 10:29:13 UTC, Basile B. wrote:
 On Saturday, 22 July 2023 at 16:50:17 UTC, Ruby The Roobster 
 wrote:
 Following all of the steps for building on windows, I get 
 the following linker error:

 ```
 dexed-d.obj : error LNK2019: unresolved external symbol 
 __imp__D3std12experimental6logger12__ModuleInfoZ referenced 
 in function ldc.dllimport_relocation
 ```

 I'm using LDC 1.32.0.
 Linker used is the Microsoft linker, not sure if that 
 matters.
Since [those changes](https://gitlab.com/basile.b/dexed/-/commit/052e49aa35f7c2097bd714033a5ac75dac5fe992#9d1e5b64717091f93d3582fa811 e60b73160ccf_15_13) that should ~~work~~ compile (I admit I have not tested to see if that even runs) now.
Actually I will tell you a little story. Trust it or dont. So I was on IRC, in contact with Richard, trying to fix the problem. So it was like "if I do that that will be ok ?" which I did. But there was still many error messages...So I was a bit upset like "that still does not work..." It turns out that this worked... but the linker output 3000 lines of warnings..
If there is a working executable, could it be placed on some location from which it can be grabed? Maybe from https://gitlab.com/basile.b/dexed?
Sorry, I meant a working executable for Windows.
On AppYewyor it is no longer available. It says: "Artifacts older than 1 month are automatically deleted. For more details see Artifacts retention policy.".
Nov 08 2023
parent Basile B. <b2.temp gmx.com> writes:
On Wednesday, 8 November 2023 at 08:26:03 UTC, Bienlein wrote:
 On AppYewyor it is no longer available. It says: "Artifacts 
 older than 1 month are automatically deleted. For more details 
 see Artifacts retention policy.".
I just have regenerated them : https://ci.appveyor.com/api/buildjobs/4k69nijm393122g7/artifacts/setup%2Foutput.zip
Dec 02 2023