Re: DUB copyFiles for subPackages

2019-12-17 Thread Dmitriy via Digitalmars-d-learn
copyFiles in subPackage finds file correct, so changing it gives "file not found". Also subPackage builds into "targetPath": "/template" as expected. But copyFiles uses "targetPath": "/build" instead of using it's local "targetPath": "/template". I just assumed if targetPath has been set in

DUB copyFiles for subPackages

2019-12-17 Thread Dmitriy via Digitalmars-d-learn
{ ... "configurations": [ { ... "targetPath": "/build", "copyFiles": [ "/template" ], "dependencies": {

Re: Odd behavior of darray.dup

2019-02-26 Thread Dmitriy via Digitalmars-d-learn
On Friday, 22 February 2019 at 11:36:35 UTC, solidstate1991 wrote: If I want to copy an array of structs with .dup (cannot post the link in question here at the moment due to non-working clipboard, it's Color from pixelperfectengine.graphics.common) I get all zeroes instead of the values from

Re: DSFML linking fails

2018-12-24 Thread Dmitriy via Digitalmars-d-learn
On Monday, 24 December 2018 at 11:07:09 UTC, number wrote: On Monday, 24 December 2018 at 10:08:25 UTC, Dmitriy wrote: Hello. I'm using https://github.com/Jebbs/DSFML library ... The problem when I build my project using these libraries. The problem in linking: Did you look at

Re: DSFML linking fails

2018-12-24 Thread Dmitriy via Digitalmars-d-learn
I opened dsfml-system.lib file, and found 1.txt file there, it contains the line: src\DSFMLC\System\CMakeFiles\dsfmlc-system.dir\Err.cpp.obj _sfErr_redirect but when linking it looking for the: lld-link: error: : undefined symbol: sfErr_redirect without a _ symbol on the beginning

DSFML linking fails

2018-12-24 Thread Dmitriy via Digitalmars-d-learn
Hello. I'm using https://github.com/Jebbs/DSFML library My env Windows 10 (x64), utils: mingw32-make, MinGW Makefiles, dub, dmd, ldc2, also tried with Visual Studio 2017 compilers (nmake, NMake Files) I compiled build.exe util from this repository, copied SFML (include content) to SFML

_GLOBAL_OFFSET_TABLE_ in dmd

2017-09-06 Thread Dmitriy via Digitalmars-d-learn
Hi! Help me please. How can i get the address of a _GLOBAL_OFFSET_TABLE_? Sorry for my bad English

Complexity guaranties of array append operator

2014-11-05 Thread Dmitriy via Digitalmars-d-learn
Hello, I'm in the middle of learning D. I can't find any definitive information about what is the complexity of operator ~= when used for adding an element to an array. Is it amortized O(1) or is it implementation defined? (I hope it at worst O(n) though I haven't seen any information about