Re: Linking a .h file

2019-05-27 Thread infinityplusb via Digitalmars-d-learn
On Saturday, 25 May 2019 at 12:59:50 UTC, Timur Gafarov wrote: bindbc-nuklear expects nuklear.so in /usr/local/lib. That's important! I changed my symlink in `/usr/local/lib` from `libnuklear.so` to `nuklear.so` and it works now.

Re: Linking a .h file

2019-05-27 Thread infinityplusb via Digitalmars-d-learn
On Saturday, 25 May 2019 at 12:59:50 UTC, Timur Gafarov wrote: bindbc-nuklear expects nuklear.so in /usr/local/lib. Or you can compile Dagon without optional libraries, using "Minimal" subconfiguration in your dub.json: "subConfigurations": { "dagon": "Minimal" } Fonts and GUI will be

Linking a .h file

2019-05-23 Thread infinityplusb via Digitalmars-d-learn
I'm trying to use Dagon (https://github.com/gecko0307/dagon) for what I thought would be a simple enough project. Initially the one thing I needed to do was to install Nuklear and Freetype 2.8.1 `Under other OSes you have to install them manually` as I'm running on Ubuntu. I'm using dub and

Re: Vibe D Examples

2018-06-20 Thread infinityplusb via Digitalmars-d-learn
On Wednesday, 20 June 2018 at 22:46:16 UTC, infinityplusb wrote: I'm trying to reacquaint myself with D, and Vibe in particular. I notice that some of my previous working apps now don't work. While going through the tour.dlang page, I can't seem to get any of those sample apps working either.

Vibe D Examples

2018-06-20 Thread infinityplusb via Digitalmars-d-learn
I'm trying to reacquaint myself with D, and Vibe in particular. I notice that some of my previous working apps now don't work. While going through the tour.dlang page, I can't seem to get any of those sample apps working either. Nor do the apps in Vibe's github page appear to be up to date

Re: Interfacing with C++

2018-02-04 Thread infinityplusb via Digitalmars-d-learn
On Sunday, 4 February 2018 at 08:33:20 UTC, Mike Parker wrote: On Sunday, 4 February 2018 at 08:17:31 UTC, Mike Parker wrote: Assuming this is OpenCV ... it is, everyone keeps saying writing bindings in D is super easy ... I feel this is a slight simplification. :( version(Windows)

Interfacing with C++

2018-02-03 Thread infinityplusb via Digitalmars-d-learn
Hi all I'm looking to try and write an interface to C++, but given I'm a casual dabbler in D, it's slightly beyond my current ability in terms of both C++ and D! As a leg up, how would one translate something like this from C++ to D? `typedef int (CV_CDECL* CvCmpFunc)(const void* a, const

naming a variable at runtime

2014-05-12 Thread InfinityPlusB via Digitalmars-d-learn
Hi clever people I'm trying to do something which I thought would be easy. Read a file in, and for every row, create a array. I want to be able to name the rows, as they are built. So when row 1 is read in I get int[] bob_1 = new int[0]; when the second row is read in, I get int[] bob_2 = new

Re: naming a variable at runtime

2014-05-12 Thread InfinityPlusB via Digitalmars-d-learn
On Tuesday, 13 May 2014 at 03:54:33 UTC, safety0ff wrote: You should look into associative arrays ( http://dlang.org/hash-map .) Example: import std.stdio; void main() { int[][string] mybobs; mybobs[bob_1] = [-1, -1, 1, -1, -1]; mybobs[bob_2] = [-1, 1, 1, 1, -1];

Re: naming a variable at runtime

2014-05-12 Thread InfinityPlusB via Digitalmars-d-learn
On Tuesday, 13 May 2014 at 04:26:04 UTC, Ali Çehreli wrote: On 05/12/2014 08:47 PM, InfinityPlusB wrote: I want to be able to name the rows, as they are built. First, no, you cannot name variables at run time because variables are concepts of source code; they don't exist in the compiled