I have several files, which I am trying to import as modules to a
central file.
However, whyile trying to complie with
dmd -L-ltango-dmd list of files space separated
However, I am getting this error :
/usr/lib/libtango-dmd.a(tango-io-Stdout-release.o): In function
Oh, I am using netrunner linux with arch/manjaro core.
From what I understand in the error message, the linker cannot find a
druntime function: void core.stdc.stdarg.va_end(void*).
I would advise to check that the druntime lib is in the import path.
In your the dmd repository, you should have a dmd.conf file containing
something like:
On Sunday, 31 August 2014 at 15:40:04 UTC, Rémy Mouëza wrote:
From what I understand in the error message, the linker cannot
find a druntime function: void core.stdc.stdarg.va_end(void*).
I would advise to check that the druntime lib is in the import
path.
In your the dmd repository, you
I am linking against tango
ldc -I/path/to/tango -L-L/path/to/tango -L-ltango-dmd \
I have checked my ldc installation: the druntime library is located in
ldc2-0.12.0-linux-x86/x86/libdruntime-ldc.a
You should also add a some extra flags like:
-L-L/path/to/ldc/lib/architecture -L-Ldruntime-ldc .
On 08/31/2014 05:52 PM, seany wrote:
I am linking against tango
ldc
On Sunday, 31 August 2014 at 20:40:06 UTC, Rémy Mouëza wrote:
-L-L/path/to/ldc/lib/architecture -L-Ldruntime-ldc .
there is no /path/to/ldc/lib in my system - i have an
/etc/ldc.conf
and a /usr/bin/ldc2
Have you tried something like this:
find /lib /usr/lib* /usr/local/lib* -name \*.a | grep -i druntime
or a simple:
locate druntime
?
On 08/31/2014 10:50 PM, seany wrote:
On Sunday, 31 August 2014 at 20:40:06 UTC, Rémy Mouëza wrote:
-L-L/path/to/ldc/lib/architecture -L-Ldruntime-ldc .
In case you don't find any druntime library, try to see if the missing
symbol is in the libphobos2.a file (you'll first have to identify the
directory where phobos is located):
$ nm libphobos2.a | ddemangle | grep stdc | grep va_end
T nothrow void
About find command :
I use find / -iname *druntime*.a with root permission - how else
will i find what is where, kfind probably uses find internally
too, or boost, egal ...
for the nm command :
without ddemangle, i dont have the command installed :
T
On Sunday, 31 August 2014 at 21:40:51 UTC, seany wrote:
On the other hand, phobos works. But I want some tango
functionality, without having to hack it all by hand ...
I suggest to try linking with both phobos and tango.
Only the druntime functions contained in phobos should be used by the
linker (if I am correct).
Otherwise, did you take a look at code.dlang.org? Depending on your
needs, there might be a dub package you could use to fill in for the
12 matches
Mail list logo