www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - dub / debug build / missing symbols

reply =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
I somehow managed to get debug symbols into my dub project in the past.

Now I'm trying to extend my dub configuration to use different libs for 
debug and release versions.

  "buildTypes"  : {
    "debug" : {
      "libs-windows-x86_64"       : ["user32", "gdi32", "mylib1_d_x64", 
"mylib2_d_x64"],
    },

    "release" : {
      "libs-windows-x86_64"       : ["user32", "gdi32", "mylib1_x64", 
"mylib2_x64"],
    }
  },

And now, the debug build doesn't contain any symbols anymore... what am 
I missing?

-- 
Robert M. Münch
http://www.saphirion.com
smarter | better | faster
May 11 2019
parent reply Ron Tarrant <rontarrant gmail.com> writes:
On Saturday, 11 May 2019 at 16:12:34 UTC, Robert M. Münch wrote:
 I somehow managed to get debug symbols into my dub project in 
 the past.

 Now I'm trying to extend my dub configuration to use different 
 libs for debug and release versions.

  "buildTypes"  : {
    "debug" : {
      "libs-windows-x86_64"       : ["user32", "gdi32", 
 "mylib1_d_x64", "mylib2_d_x64"],
    },

    "release" : {
      "libs-windows-x86_64"       : ["user32", "gdi32", 
 "mylib1_x64", "mylib2_x64"],
    }
  },

 And now, the debug build doesn't contain any symbols anymore... 
 what am I missing?
Not really familiar with this, but at a guess... Have you tried it without the 32-bit references?
May 12 2019
parent =?iso-8859-1?Q?Robert_M._M=FCnch?= <robert.muench saphirion.com> writes:
On 2019-05-12 16:46:10 +0000, Ron Tarrant said:

 Not really familiar with this, but at a guess... Have you tried it 
 without the 32-bit references?
There are not 32bit references, but 64bit libs. MS was so smart to name the API Win32, doesn't has to do anything with 32 or 64 bit... If I'm removing the buildType and only use my debug lib, it works and I get the symbols. -- Robert M. Münch http://www.saphirion.com smarter | better | faster
May 12 2019