-L-ldl do not work but pragma(lib, "dl"); works! Wtf?
Le 19/12/2013 13:46, MrSmith a écrit :
Still need help. I've tried compiling a little test project with dub and
it compiled. Then i tried to compile it by hand and got the same error.
I think there is some issue in my command with parameter ordering.
Here is test project
module test;
import de
dmd -m32
-of.dub/build/application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/test
-c
-of.dub/build/application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/test.o
-debug -g -w -version=Have_test -version=Have_derelict_glfw3
-version=Have_derelict_util
-I../../.dub/packa
The -of flag tells the compiler which name to use for
executable.
Yep, but why it is used twice?
dmd -m32
-of.dub/build/application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/test
-c
-of.dub/build/application-debug-x86-dmd-DA39A3EE5E6B4B0D3255BFEF95601890AFD80709/test.o
On 2013-12-19 13:46, MrSmith wrote:
So, do i need to use two step compilation or i need proper ordering of
parameters?
You should not need to use two steps.
One more question: why dub uses -of flag twice?
The -of flag tells the compiler which name to use for executable.
--
/Jacob Carlborg
Still need help. I've tried compiling a little test project with
dub and it compiled. Then i tried to compile it by hand and got
the same error.
I think there is some issue in my command with parameter ordering.
Here is test project
module test;
import derelict.glfw3.glfw3;
import std.stdio;
Eventually i have lot of time to answer.
Here is what 'find' emits:
andrey@andress-ubuntu:~/anchovy$ find /lib /lib32 /usr/lib
/usr/lib32 -name "libdl*.so*" -type f -exec file {} ";"
/lib/i386-linux-gnu/libdl-2.17.so: ELF 32-bit LSB shared object,
Intel 80386, version 1 (SYSV), dynamically lin
Am Mon, 16 Dec 2013 11:09:52 +0100
schrieb "MrSmith" :
> > You're still not linking ld properly. It would help
> > tremendously if you could show the command line you're using.
> > Otherwise all people can do is make guesses about what *might*
> > be wrong.
>
> Oh, right.
> Here is first with
On 12/16/2013 7:09 PM, MrSmith wrote:
You're still not linking ld properly. It would help tremendously if
you could show the command line you're using. Otherwise all people can
do is make guesses about what *might* be wrong.
Oh, right.
Here is first with "/usr/lib32/libdl.a" -L-ldl
andrey@andr
You're still not linking ld properly. It would help
tremendously if you could show the command line you're using.
Otherwise all people can do is make guesses about what *might*
be wrong.
Oh, right.
Here is first with "/usr/lib32/libdl.a" -L-ldl
andrey@andress-ubuntu:~/anchovy$ dmd -debug -gc
On 12/16/2013 6:55 PM, MrSmith wrote:
On Monday, 16 December 2013 at 07:36:12 UTC, Jacob Carlborg wrote:
now i'm getting this error:
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_416_4ee.o): In
function `_D8derelict4util9sharedlib13LoadSharedLibFAyaZPv':
/home/andrey/anchovy/deps/der
On Monday, 16 December 2013 at 07:36:12 UTC, Jacob Carlborg wrote:
On 2013-12-16 01:54, Danny Arends wrote:
Pass it depending if you use rdmd or dmd
-L-ldl
or
-ldl
It's -L-ldl regardless of it's rdmd or dmd.
now i'm getting this error:
deps/derelict-fi-master/lib/libDerelictFI.a(sharedl
On 2013-12-16 01:54, Danny Arends wrote:
Pass it depending if you use rdmd or dmd
-L-ldl
or
-ldl
It's -L-ldl regardless of it's rdmd or dmd.
--
/Jacob Carlborg
On Sunday, 15 December 2013 at 21:38:37 UTC, MrSmith wrote:
I am trying to compile my program which uses derelict under
ubuntu 13.10. DerelictUtil needs access to dl library. Simply
providing libdl.a as parameter to compiler doesn't work.
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_4
I am trying to compile my program which uses derelict under
ubuntu 13.10. DerelictUtil needs access to dl library. Simply
providing libdl.a as parameter to compiler doesn't work.
deps/derelict-fi-master/lib/libDerelictFI.a(sharedlib_416_4ee.o):
In function `_D8derelict4util9sharedlib13LoadShar
15 matches
Mail list logo