Dynamically calling shared objects from statically build executable allowed

2020-02-09 Thread Andre Pany via Digitalmars-d-learn
Hi, while dynamically calling a shared object from a statically build executable on linux, both LDC and DMD fails with a non-zero code 139. In my productive system the SO is written in C++, for reproduction I wrote a sample SO in D. You can find the example here

Re: total newbie + IDE

2020-02-09 Thread Mike Parker via Digitalmars-d-learn
On Sunday, 9 February 2020 at 22:10:57 UTC, solnce wrote: Personally I feel this is more about lack of the vision, as Alexandrescu once said. Now it feels like D is mostly the compiler, but I think, that having one big mega project (like IDE+RAD) could give a new breath and significance to D

Re: How to compile with GtkD

2020-02-09 Thread Mike Wey via Digitalmars-d-learn
On 09-02-2020 12:52, mark wrote: I am trying to build a simple "hello world" app (from the gtkDcoding blog) in $HOME/app/d/gtktest (which is a dub init created directory) and have this dub.sdl: name "gtktest" description "Gtk Test" authors "Mark" targetType "executable" dependency

Re: total newbie + IDE

2020-02-09 Thread Laurent Tréguier via Digitalmars-d-learn
On Sunday, 9 February 2020 at 22:10:57 UTC, solnce wrote: No, I understand that and agree - VSCode is impressive and I'll try it, but what is wrong with idea to have a dedicated IDE? At least one. C/C++ has tons of these and many of these are being actively developed, so why D cannot have?

Re: total newbie + IDE

2020-02-09 Thread solnce via Digitalmars-d-learn
On Sunday, 9 February 2020 at 18:17:13 UTC, JN wrote: On Sunday, 9 February 2020 at 13:22:56 UTC, solnce wrote: I really enjoy Pascal having Lazarus. Although it is not perfected, it provides very good start for beginners - native IDE, RAD, easy to setup and adjust, integrated debugger. All

Re: total newbie + IDE

2020-02-09 Thread JN via Digitalmars-d-learn
On Sunday, 9 February 2020 at 13:22:56 UTC, solnce wrote: I really enjoy Pascal having Lazarus. Although it is not perfected, it provides very good start for beginners - native IDE, RAD, easy to setup and adjust, integrated debugger. All that beginners need to have for good start at no time

Re: total newbie + IDE

2020-02-09 Thread solnce via Digitalmars-d-learn
On Sunday, 9 February 2020 at 14:32:38 UTC, Martin Brezel wrote: On Sunday, 9 February 2020 at 13:22:56 UTC, solnce wrote: I was expecting D lang to have something similar,if not an RAD, then native IDE with all that basic functionality support. VisualStudioCode seems to be what you are

Re: total newbie + IDE

2020-02-09 Thread Martin Brezel via Digitalmars-d-learn
On Sunday, 9 February 2020 at 13:22:56 UTC, solnce wrote: I was expecting D lang to have something similar,if not an RAD, then native IDE with all that basic functionality support. VisualStudioCode seems to be what you are looking for - except I do not fully understand what you mean by

Re: GtkD on Windows: notes + question

2020-02-09 Thread Daniel Kozak via Digitalmars-d-learn
"lflags-windows": ["/SUBSYSTEM:WINDOWS", "/ENTRY:mainCRTStartup"], On Sun, Feb 9, 2020 at 2:30 PM mark via Digitalmars-d-learn wrote: > > I found a much easier way to get GtkD working on windows than > that described in > https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html > >

Re: GtkD on Windows: notes + question

2020-02-09 Thread JN via Digitalmars-d-learn
On Sunday, 9 February 2020 at 13:28:59 UTC, mark wrote: I found a much easier way to get GtkD working on windows than that described in https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html 1. I downloaded and installed the Gtk3 runtime (the link is on

GtkD on Windows: notes + question

2020-02-09 Thread mark via Digitalmars-d-learn
I found a much easier way to get GtkD working on windows than that described in https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html 1. I downloaded and installed the Gtk3 runtime (the link is on https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html) 2. I

Re: total newbie + IDE

2020-02-09 Thread solnce via Digitalmars-d-learn
On Saturday, 8 February 2020 at 09:26:41 UTC, Marcone wrote: You don't need an IDE for run Dlang. I Use "Sublime Text". Very good for Dlang. I am sorry if my questions appear stupid, but I am very curious. I really enjoy Pascal having Lazarus. Although it is not perfected, it provides very

Re: How to compile with GtkD [solved]

2020-02-09 Thread mark via Digitalmars-d-learn
Turns out I didn't need to add lines to dub.sdl at all. So my dub.sdl is now just: name "gtktest" description "Gtk Test" authors "Mark" targetType "executable" dependency "gtk-d:gtkd" version=">=3.9.0" The solution was to do this: $ dub add-path ~/opt/GtkD3/ After that it does static builds,

Re: How to compile with GtkD

2020-02-09 Thread mark via Digitalmars-d-learn
On Sunday, 9 February 2020 at 12:03:23 UTC, Ron Tarrant wrote: On Sunday, 9 February 2020 at 11:52:19 UTC, mark wrote: right now I want to start on Linux and I'm stuck. Maybe this will help... https://gtkdcoding.com/2019/03/31/x0002-gtkd-in-a-linux-environment.html Unfortunately it didn't

Re: Getting the initial value of a class field in compile time.

2020-02-09 Thread realhet via Digitalmars-d-learn
On Sunday, 9 February 2020 at 02:25:56 UTC, Steven Schveighoffer wrote: On 2/8/20 7:39 PM, realhet wrote: On Sunday, 9 February 2020 at 00:15:47 UTC, Drug wrote: On Saturday, 8 February 2020 at 23:37:56 UTC, realhet wrote: Yea, I exactly ran into that "init" problem, I will avoid that, thx!

Re: Getting the initial value of a class field in compile time.

2020-02-09 Thread realhet via Digitalmars-d-learn
On Sunday, 9 February 2020 at 01:19:55 UTC, Paul Backus wrote: On Sunday, 9 February 2020 at 00:57:05 UTC, realhet wrote: On Sunday, 9 February 2020 at 00:41:12 UTC, realhet wrote: On Sunday, 9 February 2020 at 00:27:21 UTC, Adam D. Ruppe enum initValue = (new

Re: How to compile with GtkD

2020-02-09 Thread Ron Tarrant via Digitalmars-d-learn
On Sunday, 9 February 2020 at 11:52:19 UTC, mark wrote: right now I want to start on Linux and I'm stuck. Maybe this will help... https://gtkdcoding.com/2019/03/31/x0002-gtkd-in-a-linux-environment.html

How to compile with GtkD

2020-02-09 Thread mark via Digitalmars-d-learn
According to the GtkD web site https://gtkd.org/ this GUI library is cross-platform, so hopefully just what I need. The introductory blog https://gtkdcoding.com/2019/01/11/-introduction-to-gtkDcoding.html explains how to install and get started with GtkD on Windows (which I plan to use

Re: books for learning D

2020-02-09 Thread Marcone via Digitalmars-d-learn
Programming in D - Tutorial and Reference 1st Edition Free PDF Book. Download: http://ddili.org/ders/d.en/index.html