Derelict linking (Debian + derelict + dmd 2.062)

Mike Parker aldacron at gmail.com
Fri Jun 7 20:44:21 PDT 2013


On Saturday, 8 June 2013 at 00:27:36 UTC, mimi wrote:
> Hi!
>
> I am trying to add SDL support to my project. libderelict-dev 
> installed into my Debian and I am just added "import 
> derelict.sdl2.sdl;". And caused:
>
> dmd -I/usr/include/dmd/ -unittest -g -debug -debug=osmpbf 
> -L-lDerelictUtil -L-lDerelictSDL2 -L-ldl  -ofmain libosmpbfd.a

Looks like a problem with the order in which the libraries are 
specified on the command line. Swap them like so: 
"-L-lDerelictSDL2 -L-lDerelictUtil" and see if that does it for 
you.


More information about the Digitalmars-d-learn mailing list