Re: D static library on Windows 64 problem

2021-01-03 Thread WhatMeWorry via Digitalmars-d-learn
On Sunday, 3 January 2021 at 15:49:03 UTC, Imperatorn wrote: On Saturday, 2 January 2021 at 22:08:34 UTC, WhatMeWorry wrote: On Saturday, 2 January 2021 at 22:04:28 UTC, WhatMeWorry wrote: I'm stepping through the windows static library tutorial at http://prowiki.org/wiki4d/wiki.cgi?D__Tutoria

Re: D static library on Windows 64 problem

2021-01-03 Thread Imperatorn via Digitalmars-d-learn
On Saturday, 2 January 2021 at 22:08:34 UTC, WhatMeWorry wrote: On Saturday, 2 January 2021 at 22:04:28 UTC, WhatMeWorry wrote: I'm stepping through the windows static library tutorial at http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/CompilingLinkingD#Linkingmanually [...] Oops. used the ma

Re: D static library on Windows 64 problem

2021-01-02 Thread WhatMeWorry via Digitalmars-d-learn
On Saturday, 2 January 2021 at 22:04:28 UTC, WhatMeWorry wrote: I'm stepping through the windows static library tutorial at http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/CompilingLinkingD#Linkingmanually [...] Oops. used the manual example. Should be /LIBPATH:c:\dev\LibraryStudy\StaticLibr

D static library on Windows 64 problem

2021-01-02 Thread WhatMeWorry via Digitalmars-d-learn
I'm stepping through the windows static library tutorial at http://prowiki.org/wiki4d/wiki.cgi?D__Tutorial/CompilingLinkingD#Linkingmanually ``` The fix is to specify the prebuilt .lib file on the command line: dmd driver.d %cd%\libs\libfoo\libfoo.lib ``` The tutorial is for 32 bit so it u

Re: gdb + Windows 64: No debugging symbols found

2020-12-26 Thread Виталий Фадеев via Digitalmars-d-learn
On Saturday, 26 December 2020 at 14:10:46 UTC, Basile B. wrote: On Saturday, 26 December 2020 at 11:55:58 UTC, Виталий Фадеев wrote: We have: [...] Problem is: $ gdb ./app.exe GNU gdb (GDB) 9.2 ... (No debugging symbols found in ./app.exe) What is a right way to build .exe and d

Re: gdb + Windows 64: No debugging symbols found

2020-12-26 Thread Basile B. via Digitalmars-d-learn
On Saturday, 26 December 2020 at 11:55:58 UTC, Виталий Фадеев wrote: We have: [...] Problem is: $ gdb ./app.exe GNU gdb (GDB) 9.2 ... (No debugging symbols found in ./app.exe) What is a right way to build .exe and debug with gdb ? Try to build with latest version of LDC and use

Re: gdb + Windows 64: No debugging symbols found

2020-12-26 Thread Mike Parker via Digitalmars-d-learn
On Saturday, 26 December 2020 at 11:55:58 UTC, Виталий Фадеев wrote: Problem is: $ gdb ./app.exe GNU gdb (GDB) 9.2 ... (No debugging symbols found in ./app.exe) What is a right way to build .exe and debug with gdb ? The version of gdb that ships with MSYS is probably going t

gdb + Windows 64: No debugging symbols found

2020-12-26 Thread Виталий Фадеев via Digitalmars-d-learn
We have: // app.d import std.stdio; void main() { writeln( "OK" ); } Build: dmd -m64 -g app.d OS: Windows 10, x86_64 MSYS2: gdb Goal: gdb app.exe Problem is: $ gdb ./app.exe GNU gdb (GDB) 9.2 ... (No debugging symbols found in ./ap

Re: Windows 64-bit import library

2018-07-22 Thread Jordan Wilson via Digitalmars-d-learn
On Friday, 20 July 2018 at 12:03:20 UTC, evilrat wrote: On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: On Friday, 20 July 2018 at 01:34:39 UTC, Mike Parker wrote: On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate

Re: Windows 64-bit import library

2018-07-22 Thread Jordan Wilson via Digitalmars-d-learn
On Friday, 20 July 2018 at 05:12:05 UTC, Mike Parker wrote: On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: I don't have MSVC, so I built it using mingw, which generated a .a lib. I shall google some more, as I understand it DMD -m64 uses Mingw libs as a fall back when MSVC not f

Re: Windows 64-bit import library

2018-07-20 Thread evilrat via Digitalmars-d-learn
On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: On Friday, 20 July 2018 at 01:34:39 UTC, Mike Parker wrote: On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate lib? Else I think I'll need to get hold of the proper imp

Re: Windows 64-bit import library

2018-07-19 Thread Mike Parker via Digitalmars-d-learn
On Friday, 20 July 2018 at 04:31:38 UTC, Jordan Wilson wrote: I don't have MSVC, so I built it using mingw, which generated a .a lib. I shall google some more, as I understand it DMD -m64 uses Mingw libs as a fall back when MSVC not found, I compiled Lua using mingw, I can't be too much furthe

Re: Windows 64-bit import library

2018-07-19 Thread Jordan Wilson via Digitalmars-d-learn
On Friday, 20 July 2018 at 01:34:39 UTC, Mike Parker wrote: On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate lib? Else I think I'll need to get hold of the proper import libs that come with the Lua distribution. Lua is extreme

Re: Windows 64-bit import library

2018-07-19 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 19 July 2018 at 21:43:35 UTC, Jordan Wilson wrote: Is there any way I can generate the appropriate lib? Else I think I'll need to get hold of the proper import libs that come with the Lua distribution. Lua is extremely easy to build. That will generate the import lib for you.

Windows 64-bit import library

2018-07-19 Thread Jordan Wilson via Digitalmars-d-learn
I'm trying to create an import library from a dll (in this case, a Lua dll). Using dumpbin, I end up with a .def file: EXPORTS luaL_addlstring luaL_addstring luaL_addvalue luaL_argerror luaL_buffinit ... I then use MS lib tool to generate a lib file: lib /def:lua53.def /out:lua53.lib /machine

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
http://forum.dlang.org/thread/md5kq0$8au$1...@digitalmars.com Got a working build at 64 bits using the 2.067 beta 3. Delighted.

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
IIRC there are some fixes to the Win64 context switching code in the 2.067 or master druntime. You might want to try those first before spending more time tracking this down. Great, and thanks.

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
On Monday, 9 March 2015 at 17:00:38 UTC, Jacques Müller wrote: With the newest beta everything seems to work fine. http://forum.dlang.org/thread/md5kq0$8au$1...@digitalmars.com That's great news! Thank you.

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread via Digitalmars-d-learn
With the newest beta everything seems to work fine. http://forum.dlang.org/thread/md5kq0$8au$1...@digitalmars.com

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread David Nadlinger via Digitalmars-d-learn
On Sunday, 8 March 2015 at 18:18:49 UTC, Carl Sturtivant wrote: Should I be doing something special with linkage so this works? What is going on? IIRC there are some fixes to the Win64 context switching code in the 2.067 or master druntime. You might want to try those first before spending mo

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
I can reproduce this issue with dmd 2.066.1, please go forward and open a issue on https://issues.dlang.org/ Kind Regards Benjamin Thaut Thank you; will do.

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Benjamin Thaut via Digitalmars-d-learn
On Monday, 9 March 2015 at 14:39:34 UTC, Carl Sturtivant wrote: Please confirm or deny that this is a real bug, as its getting in the way of a genuine project. How should I proceed? I'm working on a 64-bit Windows port of the following. http://www.cs.arizona.edu/icon/ Here's the 32-bit Windows

Re: Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-09 Thread Carl Sturtivant via Digitalmars-d-learn
Please confirm or deny that this is a real bug, as its getting in the way of a genuine project. How should I proceed? I'm working on a 64-bit Windows port of the following. http://www.cs.arizona.edu/icon/ Here's the 32-bit Windows port. http://www.cs.arizona.edu/icon/v95w.htm Among other things

Seems core.thread.Fiber is broken dmd windows 64-bit build

2015-03-08 Thread Carl Sturtivant via Digitalmars-d-learn
The following crashes on Windows 7 sp1 64-bit edition when build at 64 bits with dmd and the Microsoft linker that comes with Windows SDK 7.1 (i.e. MSVC 2010 linker). I've had no trouble with other D code when using that arrangement, though I have not used threads. When built at 32 bits with

Re: Windows 64

2013-10-07 Thread Rainer Schuetze
On 08.10.2013 01:26, "Casper Færgemand" " wrote: And I'm done. The problem was this: LIB=%@P%\..\lib;%VCINSTALLDIR%\lib\amd64;%WindowsSdkDir%\Lib\x64 The lib folder linked first contains kernel32.lib and shell32.lib. Removing both made -m64 possible, but killed -m32. Changing it to this: LIB=%V

Re: Windows 64

2013-10-07 Thread Casper Færgemand
And I'm done. The problem was this: LIB=%@P%\..\lib;%VCINSTALLDIR%\lib\amd64;%WindowsSdkDir%\Lib\x64 The lib folder linked first contains kernel32.lib and shell32.lib. Removing both made -m64 possible, but killed -m32. Changing it to this: LIB=%VCINSTALLDIR%\lib\amd64;%WindowsSdkDir%\Lib\x64;%@

Re: Windows 64

2013-10-07 Thread Casper Færgemand
Okay, it's definitely a problem with dmd passing something bad to link. I was able to link it manually and the program was working fine. import std.stdio; void main() { writeln("Hello Linker!"); } I ran "dmd -m64 test.d". The usual errors were dumped in the terminal. I then ran "link

Re: Windows 64

2013-10-07 Thread Casper Færgemand
More searching suggests all the unresolved external symbols are found in the lib files in v7.1\Lib\x64\ I'm guessing the linker doesn't know this. Any easy way to tell it where to look? Does the linker have an include folder? I tried with -LPATH"%WindowsSdkDir%\Lib\x64" as well as -L+"C:\Program

Re: Windows 64

2013-10-07 Thread Casper Færgemand
A lot of deleted posts and a lot of stupid later, v7.1 SDK is apparently installed in Program Files and not Program Files (x86). Kinda obvious given the names of said folders, but whatever. x.x The x64 version does indeed have an x64 folder in the Lib folder. However, all that aside, still th

Re: Windows 64

2013-10-07 Thread Casper Færgemand
I have four folders in the SDK folder: v7.0A, v7.1, v8.0 and v8.0A. The latter three contain nothing but a few files, presumably installed by VS 11 or something else. I'm currently trying to install v7.1.

Re: Windows 64

2013-10-07 Thread Casper Færgemand
On Monday, 7 October 2013 at 17:48:13 UTC, Rainer Schuetze wrote: Maybe the WindowsSdkDir environment variable is not set in your console. For the Windows 8 SDK, the standard location of the x64 libraries is "c:\Program Files (x86)\Windows Kits\8.0\Lib\win8\um\x64" for the Windows 7 SDK or pr

Re: Windows 64

2013-10-07 Thread Rainer Schuetze
On 07.10.2013 12:21, "Casper Færgemand" " wrote: On Monday, 7 October 2013 at 07:03:39 UTC, Rainer Schuetze wrote: The linker does not find the import libraries from the Windows SDK, so it hits the 32-bit libraries that come with dmd. The released sc.ini does not work with VS2012+ or a Window

Re: Windows 64

2013-10-07 Thread Casper Færgemand
On Monday, 7 October 2013 at 07:03:39 UTC, Rainer Schuetze wrote: The linker does not find the import libraries from the Windows SDK, so it hits the 32-bit libraries that come with dmd. The released sc.ini does not work with VS2012+ or a Windows SDK 8, you should add the following lines to it:

Re: Windows 64

2013-10-07 Thread Rainer Schuetze
On 07.10.2013 03:31, "Casper Færgemand" " wrote: Hey, I've been trying for a while to compile 64 bit programs on a Windows 7 platform. The setup is the following: Version: 2.063.2 OS: Windows 7 64 Linked: VS 11 64 bit linker sc.ini: [Version] version=7.51 Build 020 [Environment] LIB="%@P%\.

Windows 64

2013-10-06 Thread Casper Færgemand
Hey, I've been trying for a while to compile 64 bit programs on a Windows 7 platform. The setup is the following: Version: 2.063.2 OS: Windows 7 64 Linked: VS 11 64 bit linker sc.ini: [Version] version=7.51 Build 020 [Environment] LIB="%@P%\..\lib";\dm\lib DFLAGS="-I%@P%\..\..\src\phobos" "-