Derelict linking (Debian + derelict + dmd 2.062)

mimi 4.deniz.z.z at gmail.com
Fri Jun 7 21:23:38 PDT 2013


Thanks! It worked!

On Saturday, 8 June 2013 at 03:44:22 UTC, Mike Parker wrote:
> 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