Creating shared library on Monodevelop with MonoD, Implib problem

tcak via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Fri Nov 18 22:23:15 PST 2016


I am on Ubuntu. I try to create a very basic (one empty function 
declaration) shared library for testing.

MonoD (version 2.14.5), generates a command line similar to 
following:

dmd -debug -gc "myclass.d"  "-I/usr/include/dmd" 
"-L/IMPLIB:/home/user/Projects/Router/bin/Debug/libRouter.a" 
"-odobj/Debug" 
"-of/home/user/Projects/Router/bin/Debug/libRouter.so" -fPIC 
-defaultlib=libphobos2.so

/usr/bin/ld: cannot find 
/IMPLIB:/home/user/Projects/Router/bin/Debug/libRouter.a: No such 
file or directory

collect2: error: ld returned 1 exit status
Error: linker exited with status 1


I don't understand why it is trying to link the project with 
libRouter.a. Am I missing something?


More information about the Digitalmars-d-learn mailing list