Re: undefined reference to

2025-06-14 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 15/06/2025 5:42 AM, mitgedanken wrote: On Saturday, 14 June 2025 at 15:28:27 UTC, Richard (Rikki) Andrew Cattermole wrote: On 15/06/2025 3:25 AM, mitgedanken wrote: [...] You may be linking against it separately. The -i behavior only works for small executables, when the build commands (

Re: undefined reference to

2025-06-14 Thread mitgedanken via Digitalmars-d-learn
On Saturday, 14 June 2025 at 15:28:27 UTC, Richard (Rikki) Andrew Cattermole wrote: On 15/06/2025 3:25 AM, mitgedanken wrote: [...] You may be linking against it separately. The -i behavior only works for small executables, when the build commands (yes plural) get more complex its not going

Re: undefined reference to

2025-06-14 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
On 15/06/2025 3:25 AM, mitgedanken wrote: On Saturday, 14 June 2025 at 13:46:20 UTC, Steven Schveighoffer wrote: On Saturday, 14 June 2025 at 00:25:13 UTC, mitgedanken wrote: [...] You need to include all modules on the command line that you import, or use the -i switch. -Steve Oh, yes! I

Re: undefined reference to

2025-06-14 Thread mitgedanken via Digitalmars-d-learn
On Saturday, 14 June 2025 at 13:46:20 UTC, Steven Schveighoffer wrote: On Saturday, 14 June 2025 at 00:25:13 UTC, mitgedanken wrote: [...] You need to include all modules on the command line that you import, or use the -i switch. -Steve Oh, yes! I completely forgot about that. Why isn't tha

Re: undefined reference to

2025-06-14 Thread Steven Schveighoffer via Digitalmars-d-learn
On Saturday, 14 June 2025 at 00:25:13 UTC, mitgedanken wrote: I use ``dmd package.d -verrors=3 -debug -I"../.."``. I get ```sh Error: undefined reference to `std.container.array.Array!(minimal.token.token.Token).Array.empty() const` referenced from `const bool std.container.a

undefined reference to

2025-06-13 Thread mitgedanken via Digitalmars-d-learn
I use ``dmd package.d -verrors=3 -debug -I"../.."``. I get ```sh Error: undefined reference to `std.container.array.Array!(minimal.token.token.Token).Array.empty() const` referenced from `const bool std.container.array.Array!(minimal.token.token.Token).Array.opEquals

Re: vibe-d linker error: undefined reference to deimos openssl

2024-09-16 Thread Curtis Spencer via Digitalmars-d-learn
FD73CFFA319B61AF4FDBEB7F2781D40C450C1C5A40CC0/libvibe-stream_tls.a(openssl.o):(.data.rel.ro+0x70): undefined reference to `_D6deimos7openssl3bio12__ModuleInfoZ' /usr/bin/ld: ../../.dub/packages/vibe-stream-1.1.0/vibe-stream/tls/.dub/build/openssl-3.0-debug-linux.posix-x86_64-dmd_v2.101.2-FEA5B9042BC39B

Re: vibe-d linker error: undefined reference to deimos openssl

2024-09-14 Thread Steven Schveighoffer via Digitalmars-d-learn
On Tuesday, 10 September 2024 at 20:41:12 UTC, Curtis Spencer wrote: I'm attempting to upgrade the vibe-d dependencies of a project. The project compiles fine using `dub`, but the linker fails with: … I'm at a loss for how to fix this linker error. Any help would be appreciated. You may

vibe-d linker error: undefined reference to deimos openssl

2024-09-10 Thread Curtis Spencer via Digitalmars-d-learn
101.2-BCC9E2A9CB402B67930FAFFBF7360088035232BADBED8A5363A1A4DE1DBD7D7C/libvibe-d_tls.a(openssl.o):(.data.rel.ro+0x70): undefined reference to `_D6deimos7openssl3bio12__ModuleInfoZ' /usr/bin/ld: ../../.dub/packages/vibe-d-0.9.8/vibe-d/tls/.dub/build/openssl-debug-linux.posix-x86_64-dm

Re: ldc link error on new machine: undefined reference to `_D6object9Throwable7messageMxFNbNfZAxa'

2023-06-14 Thread mw via Digitalmars-d-learn
On Thursday, 15 June 2023 at 01:20:50 UTC, H. S. Teoh wrote: On Thu, Jun 15, 2023 at 12:49:30AM +, mw via Digitalmars-d-learn wrote: Hi, Recently encountered a similar problem, ultimately the cause was that my library paths turned out to be wrongly set, so it was picking up the wrong vers

Re: ldc link error on new machine: undefined reference to `_D6object9Throwable7messageMxFNbNfZAxa'

2023-06-14 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jun 15, 2023 at 12:49:30AM +, mw via Digitalmars-d-learn wrote: > Hi, > > I switched to a different machine to build my project, suddenly I got > lots of link errors. (It builds fine on the old machine, and my > software version are the same on both machines LDC - the LLVM D > compiler

ldc link error on new machine: undefined reference to `_D6object9Throwable7messageMxFNbNfZAxa'

2023-06-14 Thread mw via Digitalmars-d-learn
/library-unittest-linux.posix-x86_64-ldc_v1.32.2-71414BF132F687B008642EB263AC23264B21497EA1FEF7D8AFA169EDF7967ADF/libcachetools.a(cachetools.containers.hashmap.o):(.data.rel.ro._D10cachetools10containers7hashmap11KeyNotFound6__vtblZ+0x48): undefined reference to `_D6object9Throwable7messageMxFNbNfZAxa

Re: undefined reference to "main"

2023-04-05 Thread Richard (Rikki) Andrew Cattermole via Digitalmars-d-learn
Originally vibe.d included its own main function by default. That is now opt-in instead of opt-out. Circa 2016. You can either add the version ``VibeDefaultMain`` or use a main function and call ``runApplication`` yourself. https://vibed.org/docs#first-steps

Re: undefined reference to "main"

2023-04-05 Thread FeepingCreature via Digitalmars-d-learn
On Wednesday, 5 April 2023 at 09:19:17 UTC, Alexander Zhirov wrote: How to compile the example given in the book correctly? When compiling, an error occurs that the main function is missing. If I replace `shared static this()` with `void main()', then everything starts. What does the compilatio

undefined reference to "main"

2023-04-05 Thread Alexander Zhirov via Digitalmars-d-learn
How to compile the example given in the book correctly? When compiling, an error occurs that the main function is missing. If I replace `shared static this()` with `void main()', then everything starts. What does the compilation string in `dub` and `dmd` look like correctly? ```d import vibe.

Re: /usr/bin/ld: [...] undefined reference to _D3std6format6internal6write...

2022-12-22 Thread Siarhei Siamashka via Digitalmars-d-learn
On Thursday, 22 December 2022 at 15:32:28 UTC, Anonymouse wrote: I'm not sure what to do. If it links on Ubuntu, but not on Manjaro/Arch, then is it possible that the GDC package from Manjaro/Arch is somehow provided with a missing, misconfigured or broken Phobos library? Maybe try to compi

Re: /usr/bin/ld: [...] undefined reference to _D3std6format6internal6write...

2022-12-22 Thread Anonymouse via Digitalmars-d-learn
const(std.format.spec.FormatSpec!(char).FormatSpec))': /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/include/d/std/format/internal/write.d:171: undefined reference to `pure nothrow @nogc @trusted const(char)[] std.format.internal.write.formatValueImpl!(void delegate(scope const(char)[]) pure not

Re: /usr/bin/ld: [...] undefined reference to _D3std6format6internal6write...

2022-12-20 Thread Paul Backus via Digitalmars-d-learn
On Tuesday, 20 December 2022 at 20:01:04 UTC, Anonymouse wrote: What does `-allinst` even do `-allinst` tells the compiler to generate code for all instantiated templates, even if it thinks that code has already been generated in a different object file. Why would the compiler think that? S

/usr/bin/ld: [...] undefined reference to _D3std6format6internal6write...

2022-12-20 Thread Anonymouse via Digitalmars-d-learn
std/format/internal/write.d:3819: undefined reference to `_D3std9algorithm9searching__T3allSQBg6format8internal5write__T8getWidthTAyaZQoFQhZ9__lambda2Z__TQCpTQBcZQCxMFNaNfQBpZb' /usr/bin/ld: /tmp/ccstWTAS.o: in function `_D3std6format8internal5write__T8getWidthTAaZQnFNaNfQkZl': /usr/lib/gcc

Re: undefined reference to `const const(char)[] object.Throwable.message()

2022-05-17 Thread rikki cattermole via Digitalmars-d-learn
As far as I know, no D compiler guarantees compatibility between objects built on different version of itself. The change would have been[0]. [0] https://github.com/dlang/druntime/commit/c6762914682d4fa894e2b746bf4bd9ce3ec9f7cb

undefined reference to `const const(char)[] object.Throwable.message()

2022-05-17 Thread kdevel via Digitalmars-d-learn
._D7decimalQi25InvalidOperationException6__vtblZ+0x48): undefined reference to `_D6object9Throwable7messageMxFZAxa' decimal.git/libdecimal.a(decimal_50_94f.o):(.data._D7decimalQi23DivisionByZeroException6__vtblZ+0x48): undefined reference to `_D6object9Throwable7messageMxFZAxa' decimal.git/libdecimal.a(deci

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-13 Thread rempas via Digitalmars-d-learn
On Monday, 10 January 2022 at 21:17:22 UTC, Adam D Ruppe wrote: It's not a system call, it just a bitflag tester. I wasn't talking about the flag actually but for the "stat" system call

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread Adam D Ruppe via Digitalmars-d-learn
On Monday, 10 January 2022 at 20:28:43 UTC, rempas wrote: I'll write assembly and implement the system call be myself. It's not a system call, it just a bitflag tester.

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread rempas via Digitalmars-d-learn
On Monday, 10 January 2022 at 20:28:43 UTC, rempas wrote: I see. Thanks! I will see what this function is supposed to do in the "stat.d" file or I'll write assembly and implement the system call be myself. Have a nice day my friend! When never mind, I just copy pasted the macros from "stat.h"

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread rempas via Digitalmars-d-learn
On Monday, 10 January 2022 at 20:11:06 UTC, Adam D Ruppe wrote: On Monday, 10 January 2022 at 19:33:36 UTC, rempas wrote: Thanks! It needs to be linked with which library? That segment of druntime. You can get dmd to do it for you by using the `-i -i=core.sys` flags (or maybe just the -i=cor

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread Adam D Ruppe via Digitalmars-d-learn
On Monday, 10 January 2022 at 19:33:36 UTC, rempas wrote: Thanks! It needs to be linked with which library? That segment of druntime. You can get dmd to do it for you by using the `-i -i=core.sys` flags (or maybe just the -i=core.sys thing im not sure i haven't actually tried). Or just sto

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread rempas via Digitalmars-d-learn
On Monday, 10 January 2022 at 19:28:56 UTC, Adam D Ruppe wrote: You are mistaken, -betterC's main mission is to exclude core. Declarations that just bind to something externally will still work, since it doesn't matter if they're included or not, but this one, being a macro in the original C,

Re: Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread Adam D Ruppe via Digitalmars-d-learn
On Monday, 10 January 2022 at 19:20:56 UTC, rempas wrote: If I'm not mistaken, "core*" should work with "-betterC". Any ideas? You are mistaken, -betterC's main mission is to exclude core. Declarations that just bind to something externally will still work, since it doesn't matter if they're

Undefined reference to "S_ISDIR" and "S_ISREG" when compiling with "-betterC"

2022-01-10 Thread rempas via Digitalmars-d-learn
sage (the "format" is different between the compilers tho): ``` estd.o:test.d:function _D4test6is_dirFxPaZi: error: undefined reference to '_D4core3sys5posixQk4stat7S_ISDIRFNbNikZb' testd.o:test.d:function _D4test7is_regfFxPaZi: error: undefined reference to '_D4core3sys5posixQ

Re: Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-15 Thread Jacob Carlborg via Digitalmars-d-learn
On 2020-07-14 05:33, Boris Carvajal wrote: Can you try passing -D_GLIBCXX_USE_CXX11_ABI=0 to g++ and -version=_GLIBCXX_USE_CXX98_ABI to dmd. That comes from: https://dlang.org/changelog/2.088.0.html#std_string C++11 ABI is currently not supported. I based on previous messages and the usage

Re: Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-13 Thread Boris Carvajal via Digitalmars-d-learn
On Monday, 13 July 2020 at 16:17:55 UTC, zoujiaqing wrote: On Monday, 13 July 2020 at 12:57:52 UTC, Adam D. Ruppe wrote: On Monday, 13 July 2020 at 09:34:35 UTC, zoujiaqing wrote: # dmd source/main.d Canvas.o -L-lstdc++ && ./main [1]49078 segmentation fault ./main On my computer I got th

Re: Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-13 Thread evilrat via Digitalmars-d-learn
On Monday, 13 July 2020 at 09:34:35 UTC, zoujiaqing wrote: I changed string to basic_string. /// source/main.d import std.stdio; import core.stdcpp.string; extern(C++) { class Canvas { @disable this(); static Canvas Create(); basic_string!ubyte Foo();

Re: Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-13 Thread zoujiaqing via Digitalmars-d-learn
On Monday, 13 July 2020 at 12:57:52 UTC, Adam D. Ruppe wrote: On Monday, 13 July 2020 at 09:34:35 UTC, zoujiaqing wrote: # dmd source/main.d Canvas.o -L-lstdc++ && ./main [1]49078 segmentation fault ./main On my computer I got this warning out of the compiler: libstdc++ std::__cxx11::bas

Re: Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-13 Thread Adam D. Ruppe via Digitalmars-d-learn
On Monday, 13 July 2020 at 09:34:35 UTC, zoujiaqing wrote: # dmd source/main.d Canvas.o -L-lstdc++ && ./main [1]49078 segmentation fault ./main On my computer I got this warning out of the compiler: libstdc++ std::__cxx11::basic_string is not yet supported; the struct contains an interio

Re: Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-13 Thread zoujiaqing via Digitalmars-d-learn
I changed string to basic_string. /// source/main.d import std.stdio; import core.stdcpp.string; extern(C++) { class Canvas { @disable this(); static Canvas Create(); basic_string!ubyte Foo(); basic_string!ubyte Bar(); }; } void main() { C

Bind C++ class to DLang : undefined reference to `Canvas::Foo()'

2020-07-12 Thread zoujiaqing via Digitalmars-d-learn
); writeln(canvas.Foo()); writeln(canvas.Bar()); } # clang++ -I./include/ -fPIE -c src/Canvas.cpp # dmd source/main.d Canvas.o -L-lstdc++ && ./main /usr/bin/ld: main.o:(.data._D4main6Canvas6__vtblZ+0x0): undefined reference to `Canvas::Foo()' /usr/bin/ld: main.o:(.

Re: undefined reference to 'deflateEnd'

2020-05-18 Thread ikod via Digitalmars-d-learn
On Monday, 18 May 2020 at 07:33:29 UTC, Andre Pany wrote: On Monday, 18 May 2020 at 06:02:03 UTC, ikod wrote: NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" [...] Thanks a lot. Kind regards André Just discovered that we can import etc.c.zlib and use low level zlib directly

Re: undefined reference to 'deflateEnd'

2020-05-18 Thread Andre Pany via Digitalmars-d-learn
On Monday, 18 May 2020 at 06:02:03 UTC, ikod wrote: NAME="Ubuntu" VERSION="18.04.4 LTS (Bionic Beaver)" [...] Thanks a lot. Kind regards André

Re: undefined reference to 'deflateEnd'

2020-05-17 Thread ikod via Digitalmars-d-learn
-gnu/9/../../../x86_64-linux-gnu/libphobos2-ldc.a(zlib.o):function _D3std4zlib8Compress5errorMFiZv: error: undefined reference to 'deflateEnd' /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libphobos2-ldc.a(zlib.o):function _D3std4zlib8Compress6__dtorMFZv: error: undefined refere

undefined reference to 'deflateEnd'

2020-05-17 Thread Andre Pany via Digitalmars-d-learn
ction _D3std4zlib8Compress5errorMFiZv: error: undefined reference to 'deflateEnd' /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/libphobos2-ldc.a(zlib.o):function _D3std4zlib8Compress6__dtorMFZv: error: undefined reference to 'deflateEnd' The actual link command looks

Re: Compilation error: undefined reference to 'cblas_dgemv' / 'cblas_dger' / 'cblas_dgemm'

2020-03-10 Thread Pavel Shkadzko via Digitalmars-d-learn
On Monday, 13 January 2020 at 20:47:07 UTC, p.shkadzko wrote: On Sunday, 12 January 2020 at 13:07:33 UTC, dnsmt wrote: On Saturday, 11 January 2020 at 16:45:22 UTC, p.shkadzko wrote: I am trying to run example code from https://tour.dlang.org/tour/en/dub/lubeck ... This is Linux Manjaro with

Re: Compilation error: undefined reference to 'cblas_dgemv' / 'cblas_dger' / 'cblas_dgemm'

2020-01-13 Thread p.shkadzko via Digitalmars-d-learn
On Sunday, 12 January 2020 at 13:07:33 UTC, dnsmt wrote: On Saturday, 11 January 2020 at 16:45:22 UTC, p.shkadzko wrote: I am trying to run example code from https://tour.dlang.org/tour/en/dub/lubeck ... This is Linux Manjaro with openblas package installed. The Lubeck library depends on CB

Re: Compilation error: undefined reference to 'cblas_dgemv' / 'cblas_dger' / 'cblas_dgemm'

2020-01-12 Thread dnsmt via Digitalmars-d-learn
On Saturday, 11 January 2020 at 16:45:22 UTC, p.shkadzko wrote: I am trying to run example code from https://tour.dlang.org/tour/en/dub/lubeck ... This is Linux Manjaro with openblas package installed. The Lubeck library depends on CBLAS, but the openblas package in the Arch repository is c

Compilation error: undefined reference to 'cblas_dgemv' / 'cblas_dger' / 'cblas_dgemm'

2020-01-11 Thread p.shkadzko via Digitalmars-d-learn
start/source/benchmarks/../../../../../.dub/packages/mir-blas-1.1.9/mir-blas/source/mir/blas.d:305: error: undefined reference to 'cblas_dgemv' /home/tastyminerals/dev/github/mir_quickstart/source/benchmarks/../../../../../.dub/packages/mir-blas-1.1.9/mir-blas/source/mir/blas.d:2

Re: dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

2019-05-02 Thread ag0aep6g via Digitalmars-d-learn
On 02.05.19 01:18, kdevel wrote: Now I have: a/main.d a/b/package.d a/b/c/package.d b/package.d and c/package.d as before. For reference, a/b/c/package.d is this: module c; package import std.file; And a/b/package.d starts with: module b; import c; a/main.d is ``` import b; void

Re: dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

2019-05-01 Thread Seb via Digitalmars-d-learn
On Wednesday, 1 May 2019 at 22:46:34 UTC, kdevel wrote: On Wednesday, 1 May 2019 at 22:35:12 UTC, ag0aep6g wrote: On 02.05.19 00:25, kdevel wrote: dmd -unittest -main -run package.d c/package.d That doesn't compile c/package.d. Everything after `-run package.d` is interpreted as an argument

Re: dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

2019-05-01 Thread kdevel via Digitalmars-d-learn
On Wednesday, 1 May 2019 at 22:35:12 UTC, ag0aep6g wrote: [...] Or use -i so that DMD compiles the imported module automatically: dmd -unittest -main -i -run package.d Now I have: a/main.d a/b/package.d a/b/c/package.d b/package.d and c/package.d as before. a/main.d is ``` import b; v

Re: dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

2019-05-01 Thread kdevel via Digitalmars-d-learn
On Wednesday, 1 May 2019 at 22:35:12 UTC, ag0aep6g wrote: On 02.05.19 00:25, kdevel wrote: dmd -unittest -main -run package.d c/package.d That doesn't compile c/package.d. Everything after `-run package.d` is interpreted as an argument to the compiled program. Thanks for the information. W

Re: dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

2019-05-01 Thread ag0aep6g via Digitalmars-d-learn
On 02.05.19 00:25, kdevel wrote: dmd -unittest -main -run package.d c/package.d That doesn't compile c/package.d. Everything after `-run package.d` is interpreted as an argument to the compiled program. I.e., that line effectively does this: dmd -unittest -main package.d ./package c

dmd -unittest -main -run: undefined reference to `_D1c12__ModuleInfoZ'

2019-05-01 Thread kdevel via Digitalmars-d-learn
-unittest -main -run package.d c/package.d fails with package.o:(.data.rel.ro+0x10): undefined reference to `_D1c12__ModuleInfoZ' collect2: ld returned 1 exit status Error: linker exited with status 1 Why this?

Re: Undefined Reference to OpenSSL EVP functions

2018-01-15 Thread Chris via Digitalmars-d-learn
On Tuesday, 16 January 2018 at 00:52:09 UTC, Chris wrote: I am trying to hook up OpenSSL to a dlang project I'm working on, but I have hit a problem when trying to link. I currently get the following linking error: undefined reference to `EVP_CIPHER_CTX_init' I have made sure

Undefined Reference to OpenSSL EVP functions

2018-01-15 Thread Chris via Digitalmars-d-learn
I am trying to hook up OpenSSL to a dlang project I'm working on, but I have hit a problem when trying to link. I currently get the following linking error: undefined reference to `EVP_CIPHER_CTX_init' I have made sure to include the module wrapping the c headers import deimos.o

Re: dmd (v2.075.0): fully static linking: undefined reference to `__tls_get_addr'

2017-08-21 Thread Jacob Carlborg via Digitalmars-d-learn
': src/rt/sections_elf_shared.d:(.text._D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv[_D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv]+0x38): undefined reference to `__tls_get_addr' collect2: error: ld returned 1 exit status Found that on the net but no solution: http://www.digital

Re: dmd (v2.075.0): fully static linking: undefined reference to `__tls_get_addr'

2017-08-19 Thread Joakim via Digitalmars-d-learn
On Saturday, 19 August 2017 at 14:22:21 UTC, kdevel wrote: On Saturday, 19 August 2017 at 14:07:49 UTC, kdevel wrote: src/rt/sections_elf_shared.d:(.text._D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv[_D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv]+0x38): undefined reference to

Re: dmd (v2.075.0): fully static linking: undefined reference to `__tls_get_addr'

2017-08-19 Thread kdevel via Digitalmars-d-learn
On Saturday, 19 August 2017 at 14:07:49 UTC, kdevel wrote: src/rt/sections_elf_shared.d:(.text._D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv[_D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv]+0x38): undefined reference to `__tls_get_addr' https://issues.dlang.org/show_bug.cgi?id=12268

dmd (v2.075.0): fully static linking: undefined reference to `__tls_get_addr'

2017-08-19 Thread kdevel via Digitalmars-d-learn
red.d:(.text._D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv[_D2rt19sections_elf_shared11getTLSRangeFNbNimmZAv]+0x38): undefined reference to `__tls_get_addr' collect2: error: ld returned 1 exit status Found that on the net but no solution: http://www.digitalmars.com/d/archives/digitalma

Re: Using packages: undefined reference to main

2017-03-17 Thread cloutiy via Digitalmars-d-learn
On Friday, 17 March 2017 at 16:16:00 UTC, bachmeier wrote: On Thursday, 16 March 2017 at 17:55:13 UTC, cloutiy wrote: I'd like to try making a simple web app using vibrant.d, however I don't think I'm using it correctly since I'm getting a linking error when compiling. Below is my SDL with ad

Re: Using packages: undefined reference to main

2017-03-17 Thread bachmeier via Digitalmars-d-learn
On Thursday, 16 March 2017 at 17:55:13 UTC, cloutiy wrote: I'd like to try making a simple web app using vibrant.d, however I don't think I'm using it correctly since I'm getting a linking error when compiling. Below is my SDL with added vibrant.d dependency: name "cvmaker" description "A sim

Using packages: undefined reference to main

2017-03-16 Thread cloutiy via Digitalmars-d-learn
with(Vibrant) { Get("/hello", (req, res) => "Hello World!"); } } However I get a linking error when running the command 'dub' in my project folder: Linking... /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.1/../../../../lib/crt1.o: In function `_start&#x

Re: undefined reference to class template

2014-12-05 Thread Satoshi via Digitalmars-d-learn
I have defined LinkedList as di file, Im not compiling it. Im compiling every .d file separately, eg. main.d -> main.d.o without including anything else. I tried to use -femit-templates but nothing happnes. I dont have object file of LinkedList.di, Im only importing it in source file and with

Re: undefined reference to class template

2014-11-23 Thread Kapps via Digitalmars-d-learn
nd link it together with ld Ill get errors like: "/os/KernelLand/Kernel/TaskManager/Thread.d:99: undefined reference to `_D7Library10LinkedList45__T10LinkedListTC11TaskManager6Thread6ThreadZ10LinkedList6__ctorMFNaNbNfZC7Library10LinkedList45__T10LinkedListTC11TaskManager6Thread6ThreadZ10Li

Re: undefined reference to class template

2014-11-22 Thread Satoshi via Digitalmars-d-learn
pile every source file to separate object file and link it together with ld Ill get errors like: "/os/KernelLand/Kernel/TaskManager/Thread.d:99: undefine

Re: undefined reference to class template

2014-11-17 Thread Steven Schveighoffer via Digitalmars-d-learn
get errors like: "/os/KernelLand/Kernel/TaskManager/Thread.d:99: undefined reference to `_D7Library10LinkedList45__T10LinkedListTC11TaskManager6Thread6ThreadZ10LinkedList6__ctorMFNaNbNfZC7Library10LinkedList45__T10LinkedListTC11TaskManager6Thread6ThreadZ10LinkedList'" Im compiling

Re: undefined reference to class template

2014-11-17 Thread Satoshi via Digitalmars-d-learn
Could anyone help me please?

undefined reference to class template

2014-11-14 Thread Satoshi via Digitalmars-d-learn
rnelLand/Kernel/TaskManager/Thread.d:99: undefined reference to `_D7Library10LinkedList45__T10LinkedListTC11TaskManager6Thread6ThreadZ10LinkedList6__ctorMFNaNbNfZC7Library10LinkedList45__T10LinkedListTC11TaskManager6Thread6ThreadZ10LinkedList'" Im compiling it with command like: gdc -mcmo

Re: undefined reference to `_D5xxxx6yyyyy12__ModuleInfoZ'

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
ser.d `-- range.d when I try to build it: $ dmd -I./src/ ./fasta.d 2>&1 Include all files no the command line: $ dmd -I./src/ ./fasta.d ./src/nicea/metadata.d ./src/nicea/parser.d ./src/nicea/range.d 2>&1 fasta.o:(.rodata+0x1f8): undefined reference to `_D5nicea6parser12__Mo

Re: undefined reference to `_D5xxxx6yyyyy12__ModuleInfoZ'

2014-11-05 Thread Ali Çehreli via Digitalmars-d-learn
a.d 2>&1 Include all files no the command line: $ dmd -I./src/ ./fasta.d ./src/nicea/metadata.d ./src/nicea/parser.d ./src/nicea/range.d 2>&1 fasta.o:(.rodata+0x1f8): undefined reference to `_D5nicea6parser12__ModuleInfoZ' collect2: error: ld returned 1 exit status --- erro

Re: undefined reference to `_D5xxxx6yyyyy12__ModuleInfoZ'

2014-11-05 Thread Justin Whear via Digitalmars-d-learn
when I try to build it: > > $ dmd -I./src/ ./fasta.d 2>&1 fasta.o:(.rodata+0x1f8): undefined > reference to `_D5nicea6parser12__ModuleInfoZ' > collect2: error: ld returned 1 exit status --- errorlevel 1 > > If I merge all files in one that build! > > What is it

undefined reference to `_D5xxxx6yyyyy12__ModuleInfoZ'

2014-11-05 Thread bioinfornatics via Digitalmars-d-learn
Dear, maybe I'm too tired to see my errors or they are a bug. See below I have this: . |-- fasta.d `-- src `-- nicea |-- metadata.d |-- parser.d `-- range.d when I try to build it: $ dmd -I./src/ ./fasta.d 2>&1 fasta.o:(.rodata+0x1f8): undefined

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-24 Thread Adam D. Ruppe
On Sunday, 24 November 2013 at 12:07:18 UTC, Dejan Lekic wrote: Adam, does it support multiplexing? Looks like people do not care much about that FastCGI feature... :( I don't really know, I just wrote the loop similar to the libfcgi example and left it at that. So probably not, unless the c l

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-24 Thread Jeroen Bollen
On Sunday, 24 November 2013 at 12:07:18 UTC, Dejan Lekic wrote: On Saturday, 23 November 2013 at 23:47:11 UTC, Adam D. Ruppe wrote: On Saturday, 23 November 2013 at 23:30:09 UTC, Jeroen Bollen wrote: I added the code to my GitHub repo; there don't seem to be any uncommon associative arrays: Y

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-24 Thread Dejan Lekic
On Saturday, 23 November 2013 at 23:47:11 UTC, Adam D. Ruppe wrote: On Saturday, 23 November 2013 at 23:30:09 UTC, Jeroen Bollen wrote: I added the code to my GitHub repo; there don't seem to be any uncommon associative arrays: Yea, it is the immutable string[string], I used the same pattern

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Adam D. Ruppe
On Sunday, 24 November 2013 at 03:41:20 UTC, Adam D. Ruppe wrote: enhancement request in bugzilla https://d.puremagic.com/issues/show_bug.cgi?id=11586

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Adam D. Ruppe
On Sunday, 24 November 2013 at 00:14:22 UTC, Jeroen Bollen wrote: Does yHAyaAa mean: immutable (immutable char)[char[]] Looks like you got the key and value backwards there and missed an 'A' too (I was just writing about this on SO too, but the comment limit meant I cut a bit short there).

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Adam D. Ruppe
On Sunday, 24 November 2013 at 00:01:32 UTC, Jeroen Bollen wrote: Your work actually inspired mine. I saw it used some external code so I am basically writing it without those. Oh cool!

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
On Saturday, 23 November 2013 at 23:47:11 UTC, Adam D. Ruppe wrote: On Saturday, 23 November 2013 at 23:30:09 UTC, Jeroen Bollen wrote: I added the code to my GitHub repo; there don't seem to be any uncommon associative arrays: Yea, it is the immutable string[string], I used the same pattern

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
On Saturday, 23 November 2013 at 23:47:11 UTC, Adam D. Ruppe wrote: On Saturday, 23 November 2013 at 23:30:09 UTC, Jeroen Bollen wrote: I added the code to my GitHub repo; there don't seem to be any uncommon associative arrays: Yea, it is the immutable string[string], I used the same pattern

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Adam D. Ruppe
On Saturday, 23 November 2013 at 23:30:09 UTC, Jeroen Bollen wrote: I added the code to my GitHub repo; there don't seem to be any uncommon associative arrays: Yea, it is the immutable string[string], I used the same pattern in my cgi.d and saw that too (sometimes, like I said, it is randomly

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
I added the code to my GitHub repo; there don't seem to be any uncommon associative arrays: https://github.com/SanePumpkins/FastCGI.D

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
On Saturday, 23 November 2013 at 22:49:54 UTC, Adam D. Ruppe wrote: On Saturday, 23 November 2013 at 21:05:59 UTC, Jeroen Bollen wrote: I am getting this weird linker error when compiling my code; what does it mean? I saw this on stackoverflow first and answered there, let me link it: http:

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
On Saturday, 23 November 2013 at 22:34:54 UTC, bearophile wrote: Jeroen Bollen: I am getting this weird linker error when compiling my code; what does it mean? Is your code not compiling since switching to a newer compiler? What system and compilers are you using? How many modules are in yo

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Adam D. Ruppe
On Saturday, 23 November 2013 at 21:05:59 UTC, Jeroen Bollen wrote: I am getting this weird linker error when compiling my code; what does it mean? I saw this on stackoverflow first and answered there, let me link it: http://stackoverflow.com/questions/20168136/linker-error-cannot-link-d16ty

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread bearophile
Jeroen Bollen: I am getting this weird linker error when compiling my code; what does it mean? Is your code not compiling since switching to a newer compiler? What system and compilers are you using? How many modules are in your program, and what build strategy/software are you using? Bye,

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
On Saturday, 23 November 2013 at 21:32:13 UTC, bearophile wrote: Jeroen Bollen: I am getting this weird linker error when compiling my code; what does it mean? If your code used to work, and you have just tried dmd 2.064 then as try to compile with -allinst. Bye, bearophile No luck with

Re: undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread bearophile
Jeroen Bollen: I am getting this weird linker error when compiling my code; what does it mean? If your code used to work, and you have just tried dmd 2.064 then as try to compile with -allinst. Bye, bearophile

undefined reference to `_D16TypeInfo_HAyayAa6__initZ'

2013-11-23 Thread Jeroen Bollen
I am getting this weird linker error when compiling my code; what does it mean?

Re: undefined reference to `_D6deimos6python6Python12__ModuleInfoZ'

2012-09-19 Thread Ellery Newcomer
undefined reference to __ModuleInfoZ. I guess this is because D needs a pointer to the module in order to look up enforce? What does the call to enforce look like? The error isn't from the compiler so you are pulling in a symbol which isn't in your object files. here is an older

Re: undefined reference to `_D6deimos6python6Python12__ModuleInfoZ'

2012-09-19 Thread Jesse Phillips
On Tuesday, 18 September 2012 at 04:56:27 UTC, Ellery Newcomer wrote: In a templated function in my header file, I make a call to enforce. When the function is not called [instantiated], all is well. When the function is called, it generates yon undefined reference to __ModuleInfoZ. I

Re: undefined reference to `_D6deimos6python6Python12__ModuleInfoZ'

2012-09-17 Thread Ellery Newcomer
to enforce. When the function is not called [instantiated], all is well. When the function is called, it generates yon undefined reference to __ModuleInfoZ. I guess this is because D needs a pointer to the module in order to look up enforce?

undefined reference to `_D6deimos6python6Python12__ModuleInfoZ'

2012-09-17 Thread Ellery Newcomer
With a deimos header file, I expect to need only to pass the dpath to it and the library it references to dmd, e.g. stuff - deimos - python - Python.d dmd -Istuff -L-lpython2.7 I should not need to actually pass stuff/deimos/python/Python.d to dmd. Unfortunately, that is currently not

Re: Trouble with -lib in linux "undefined reference to `_Dmain'"

2012-02-29 Thread André
ld example which compiles fine. I set the compiler option "-lib" and receives an error "undefined reference to `_Dmain'". Following commands are generated for the build process: dmd -c "main.d" -of"/home/user/Dokumente/__MonoDevelop/HelloWorld/

Re: Trouble with -lib in linux "undefined reference to `_Dmain'"

2012-02-29 Thread Kevin Cox
I think you need the -lib in the linker command (too?). On Feb 29, 2012 12:25 PM, "André" wrote: > Hi, > I use Mono-D and have a hello world example which compiles fine. > I set the compiler option "-lib" and receives an error "undefined > reference to

Trouble with -lib in linux "undefined reference to `_Dmain'"

2012-02-29 Thread André
Hi, I use Mono-D and have a hello world example which compiles fine. I set the compiler option "-lib" and receives an error "undefined reference to `_Dmain'". Following commands are generated for the build process: dmd -c "main.d" -of"/home/user/Dokumen

Re: undefined reference to symbol '_end'

2011-08-13 Thread Jesse Phillips
On Sat, 13 Aug 2011 02:13:38 +, mimocrocodil wrote: > Jesse Phillips: > > Bingo! it is compiles and works! > > Many thanks! :) The problem was with the library you were linking with, it expected more symbols. So if excluded it then those symbols were not needed.

Re: undefined reference to symbol '_end'

2011-08-12 Thread mimocrocodil
Jesse Phillips: Bingo! it is compiles and works! Many thanks! :)

Re: undefined reference to symbol '_end'

2011-08-12 Thread mimocrocodil
If try to link with any another lib (.so or .a) it works fine. Looks very strange!

Re: undefined reference to symbol '_end'

2011-08-12 Thread Jesse Phillips
On Fri, 12 Aug 2011 20:23:50 +, mimocrocodil wrote: > I am trying to link my program with libpq: > > $ dmd main.d dbwork.d -ofmain -v -L-lpq The important statement: note: '_end' is defined in DSO /lib64/libcom_err.so.2 so try adding it to the linker command line so maybe: $ dmd main.d db

undefined reference to symbol '_end'

2011-08-12 Thread mimocrocodil
--export-dynamic -lrt -lphobos2 - lpthread -lm /usr/bin/ld: /usr/lib64/libphobos2.a(memory_350_620.o): undefined reference to symbol '_end' /usr/bin/ld: note: '_end' is defined in DSO /lib64/libcom_err.so.2 so try adding it to the linker command line /lib64/libcom_err.so.2: co