How to link to libdl under linux
MrSmith
mrsmith33 at yandex.ru
Thu Dec 19 06:45:33 PST 2013
> 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/packages/derelict-glfw3-master/source
> -I../../.dub/packages/derelict-util-1.0.0/source test.d
> ../../.dub/packages/derelict-glfw3-master/source/derelict/glfw3/package.d
> ../../.dub/packages/derelict-glfw3-master/source/derelict/glfw3/glfw3.d
> ../../.dub/packages/derelict-util-1.0.0/source/derelict/util/xtypes.d
> ../../.dub/packages/derelict-util-1.0.0/source/derelict/util/exception.d
> ../../.dub/packages/derelict-util-1.0.0/source/derelict/util/system.d
> ../../.dub/packages/derelict-util-1.0.0/source/derelict/util/loader.d
> ../../.dub/packages/derelict-util-1.0.0/source/derelict/util/sharedlib.d
> ../../.dub/packages/derelict-util-1.0.0/source/derelict/util/wintypes.d
> Linking...
Turns out, dub includes actual dependencies source files into
object file. _l-ldl flag with this works fine. but i want to use
.a files instead
More information about the Digitalmars-d-learn
mailing list