www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Native PDB Error

reply Begah <mathieu.roux222 gmail.com> writes:
I have recently reinstalled a fresh version of Windows 10. I 
installed DMD 1.9.0 and compiled my code ( that was compiling 
before reinstalling Windows ).
I get this error at the linking phase :
Native PDB Error: The entry already exists.  The specified module 
already exists

I made a simplified project that gets the same error :

import imageformats;
import derelict.glfw3;

void main() {
     IFImage i0;
}

and dub.json :
"dependencies": {
	"derelict-glfw3": "4.0.0-beta.1",
	"imageformats": "~>7.0.0"
}

Compiling for 32-bit works.
Compiling for 64-bit gives that error : dub --arch=x86_64
Changing imageformats version to 5.2.0 compiles but any higher 
doesn't.
I tried compiling the code with and without admin privileges but 
it doesn't do anything.
I know that PDB is used for debugging but I don't understand this 
error.
Any ideas?
May 29 2018
next sibling parent reply rikki cattermole <rikki cattermole.co.nz> writes:
On 29/05/2018 7:47 PM, Begah wrote:
 I have recently reinstalled a fresh version of Windows 10. I installed 
 DMD 1.9.0 and compiled my code ( that was compiling before reinstalling 
 Windows ).
What? That is definitely not a valid dmd version for D2.
May 29 2018
parent Begah <mathieu.roux222 gmail.com> writes:
On Tuesday, 29 May 2018 at 07:53:49 UTC, rikki cattermole wrote:
 On 29/05/2018 7:47 PM, Begah wrote:
 I have recently reinstalled a fresh version of Windows 10. I 
 installed DMD 1.9.0 and compiled my code ( that was compiling 
 before reinstalling Windows ).
What? That is definitely not a valid dmd version for D2.
Sorry, that was the dub version. I ment 2.080.0
May 29 2018
prev sibling next sibling parent reply WebFreak001 <d.forum webfreak.org> writes:
On Tuesday, 29 May 2018 at 07:47:07 UTC, Begah wrote:
 I have recently reinstalled a fresh version of Windows 10. I 
 installed DMD 1.9.0 and compiled my code ( that was compiling 
 before reinstalling Windows ).
 I get this error at the linking phase :
 Native PDB Error: The entry already exists.  The specified 
 module already exists

 I made a simplified project that gets the same error :

 import imageformats;
 import derelict.glfw3;

 void main() {
     IFImage i0;
 }

 and dub.json :
 "dependencies": {
 	"derelict-glfw3": "4.0.0-beta.1",
 	"imageformats": "~>7.0.0"
 }

 Compiling for 32-bit works.
 Compiling for 64-bit gives that error : dub --arch=x86_64
 Changing imageformats version to 5.2.0 compiles but any higher 
 doesn't.
 I tried compiling the code with and without admin privileges 
 but it doesn't do anything.
 I know that PDB is used for debugging but I don't understand 
 this error.
 Any ideas?
for others who come across this (because this is what you find if you google this error): I haven't found any solution or reason yet, but you can compile in release mode (--build=release for dub) to work around this issue
Nov 06 2018
parent Daniel Kozak <kozzi11 gmail.com> writes:
plain works too

On Tue, Nov 6, 2018 at 7:15 PM WebFreak001 via Digitalmars-d-learn <
digitalmars-d-learn puremagic.com> wrote:

 On Tuesday, 29 May 2018 at 07:47:07 UTC, Begah wrote:
 I have recently reinstalled a fresh version of Windows 10. I
 installed DMD 1.9.0 and compiled my code ( that was compiling
 before reinstalling Windows ).
 I get this error at the linking phase :
 Native PDB Error: The entry already exists.  The specified
 module already exists

 I made a simplified project that gets the same error :

 import imageformats;
 import derelict.glfw3;

 void main() {
     IFImage i0;
 }

 and dub.json :
 "dependencies": {
       "derelict-glfw3": "4.0.0-beta.1",
       "imageformats": "~>7.0.0"
 }

 Compiling for 32-bit works.
 Compiling for 64-bit gives that error : dub --arch=x86_64
 Changing imageformats version to 5.2.0 compiles but any higher
 doesn't.
 I tried compiling the code with and without admin privileges
 but it doesn't do anything.
 I know that PDB is used for debugging but I don't understand
 this error.
 Any ideas?
for others who come across this (because this is what you find if you google this error): I haven't found any solution or reason yet, but you can compile in release mode (--build=release for dub) to work around this issue
Nov 06 2018
prev sibling parent reply Chris M. <chrismohrfeld comcast.net> writes:
On Tuesday, 29 May 2018 at 07:47:07 UTC, Begah wrote:
 I have recently reinstalled a fresh version of Windows 10. I 
 installed DMD 1.9.0 and compiled my code ( that was compiling 
 before reinstalling Windows ).
 I get this error at the linking phase :
 Native PDB Error: The entry already exists.  The specified 
 module already exists

 I made a simplified project that gets the same error :

 import imageformats;
 import derelict.glfw3;

 void main() {
     IFImage i0;
 }

 and dub.json :
 "dependencies": {
 	"derelict-glfw3": "4.0.0-beta.1",
 	"imageformats": "~>7.0.0"
 }

 Compiling for 32-bit works.
 Compiling for 64-bit gives that error : dub --arch=x86_64
 Changing imageformats version to 5.2.0 compiles but any higher 
 doesn't.
 I tried compiling the code with and without admin privileges 
 but it doesn't do anything.
 I know that PDB is used for debugging but I don't understand 
 this error.
 Any ideas?
This works fine on my home Win10 machine, dmd 2.082/2.083 + dub 1.11.0, installed using the executable from the downloads page. However I've had this same issue on my work PC for which I'll have to double-check my setup tomorrow.
Nov 06 2018
parent reply Chris M. <chrismohrfeld comcast.net> writes:
On Wednesday, 7 November 2018 at 01:37:29 UTC, Chris M. wrote:
 On Tuesday, 29 May 2018 at 07:47:07 UTC, Begah wrote:
 [...]
This works fine on my home Win10 machine, dmd 2.082/2.083 + dub 1.11.0, installed using the executable from the downloads page. However I've had this same issue on my work PC for which I'll have to double-check my setup tomorrow.
Reproduced the issue on my work machine with dmd 2.082, dub 1.9.0/1.11.0, so it seems to be a dmd issue. The only difference is that my work machine is using mingw libraries rather than Microsoft build tools.
Nov 07 2018
parent reply JN <666total wp.pl> writes:
On Wednesday, 7 November 2018 at 14:43:07 UTC, Chris M. wrote:
 On Wednesday, 7 November 2018 at 01:37:29 UTC, Chris M. wrote:
 On Tuesday, 29 May 2018 at 07:47:07 UTC, Begah wrote:
 [...]
This works fine on my home Win10 machine, dmd 2.082/2.083 + dub 1.11.0, installed using the executable from the downloads page. However I've had this same issue on my work PC for which I'll have to double-check my setup tomorrow.
Reproduced the issue on my work machine with dmd 2.082, dub 1.9.0/1.11.0, so it seems to be a dmd issue. The only difference is that my work machine is using mingw libraries rather than Microsoft build tools.
Bump. Encountering the same issue. Just reinstalled Windows and having the same error on DMD32 D Compiler v2.083.1 .
Dec 15 2018
parent JN <666total wp.pl> writes:
On Saturday, 15 December 2018 at 20:54:03 UTC, JN wrote:
 Bump. Encountering the same issue. Just reinstalled Windows and 
 having the same error on
 DMD32 D Compiler v2.083.1 .
OK, fixed it. Since it's the first hit from Google, here's a solution: https://www.reddit.com/r/roguelikedev/comments/8s5x5n/roguelikedev_does_the_complete_roguelike_tutorial/e11p66q/ "What I did to fix it was install Visual Studio 2017 Community, then go into the VS installer and add both the "Desktop Development With C++" and "Game Development With C++" workloads. It is not enough to just install Visual Studio, and the C++ Build Tools do not have the sufficient .lib files to build the game." The Game development pack is probably unnecessary, since it's DirectX and stuff, but I installed it just to be safe.
Dec 15 2018