On 11/8/18 6:43 PM, Murilo wrote:
On Thursday, 8 November 2018 at 23:28:05 UTC, Steven Schveighoffer wrote:
On 11/8/18 6:07 PM, Steven Schveighoffer wrote:

If you want to build the dlangui library directly and install it on your own without dub, you would need to download the source (probably from github) and build it using dub.

When I said without using dub, I meant without using dub to build your project. You still need to use dub to build the library.


It finally worked, but I can't just compile it normally, I have to use dub run, I wish it were something simple that I just download into the folder and then use an import statement and then compile it like any other program. I wish it were as simple as using std.stdio for example.

It's actually not a bad idea to be able to "install" libraries like you have your compiler installed. It could be done with the infrastructure that's there already. Would be cool for playing around with toy projects without having to initialize a dub project. There is the ability to include the dub file in the source file itself, but that may be too complex for your taste.

For most people who want to have their projects depend on others, there is the need to specify the projects, how they should be built, and what versions, etc. Which is why dub is used to build most things.

-Steve

Reply via email to