Re: DUB copyFiles for subPackages
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 subPackage then all commands for this package should use its targetPath config as a destination folder if there somebody of dub distributors please check is it a bug?
DUB copyFiles for subPackages
{ ... "configurations": [ { ... "targetPath": "/build", "copyFiles": [ "/template" ], "dependencies": { "package": { "path": "./source/package" } }, "subPackages": [ { "name": "package", "sourcePaths": ["/source/package"], "importPaths": ["/source/package"], "targetPath": "/template", "targetName": "./package", "copyFiles": [ "some_file" ] } ] } ] } Hello. I have a dub project which contains another one subProject in source dir. I need some files to be copied when subPackage builds. And I expect files to be copied to "targetPath": "/template" of subProject, but it copies to "targetPath": "/build", which is root output project Should copyFiles for subPackage use it's target path
Re: Odd behavior of darray.dup
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 the original array. I haven't disabled post-blit to my knowledge. Is it some kind of a bug, or the .dup function has some behavior that's not currently documented on the site (such as needing a copy constructor)? got this response on https://run.dlang.io/gist/run-dlang/965a2fb793bda7b1a82b0512d78973f3?compiler=dmd: 0x00FF 0x00FF 0x00FF7B00 0xFF7B
Re: DSFML linking fails
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 http://dsfml.com/docs/firstprogram.html ? I remember having to link also the dsfmlc-.. libraries. The build description in the http://dsfml.com is outdated. On github is the newest version, he made build.d script to compile all sources include C-code and D-code, so now C-code compiles and merging with D-code compiled into each .lib file
Re: DSFML linking fails
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
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 folder and building the libraries. build passed ok, I've got dsfml-window.lib, dsfml-system.lib and others in lib folder. The problem when I build my project using these libraries. The problem in linking: lld-link: error: : undefined symbol: sfErr_redirect lld-link: error: : undefined symbol: sfFont_getTexture lld-link: error: : undefined symbol: sfFont_getUnderlineThickness lld-link: error: : undefined symbol: sfFont_getUnderlinePosition lld-link: error: : undefined symbol: sfFont_getLineSpacing lld-link: error: : undefined symbol: sfFont_getKerning lld-link: error: : undefined symbol: sfFont_getGlyph lld-link: error: : undefined symbol: sfFont_destroy lld-link: error: : undefined symbol: sfFont_copy lld-link: error: : undefined symbol: sfFont_loadFromStream lld-link: error: : undefined symbol: sfFont_loadFromMemory lld-link: error: : undefined symbol: sfFont_loadFromFile lld-link: error: : undefined symbol: sfFont_construct lld-link: error: : undefined symbol: sfImage_flipVertically lld-link: error: : undefined symbol: sfImage_flipHorizontally lld-link: error: : undefined symbol: sfImage_getSize lld-link: error: : undefined symbol: sfImage_getPixelsPtr lld-link: error: : undefined symbol: sfImage_getPixel lld-link: error: : undefined symbol: sfImage_setPixel my dub.json file next: "sourcePaths": [ "src" ], "importPaths": [ "src", "bin" ], "targetPath": "bin", "version": "1.0.0", "configurations": [ { "targetType": "executable", "name": "default", "mainSourceFile": "src/main.d" } ], "dependencies": {}, "libs": [ "lib/dsfml-system", "lib/dsfml-graphics", "lib/dsfml-audio", "lib/dsfml-window", "lib/dsfml-network" ] What am I doing wrong, who use this lib, please help.
_GLOBAL_OFFSET_TABLE_ in dmd
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
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 that either). Also documentation to std.array.Appender says that it is more efficient to use Appender when appending many elements. Does it imply that Appender.put has amortized O(1)?