digitalmars.D.learn - Creating shared library on Monodevelop with MonoD, Implib problem
- tcak (16/16) Nov 18 2016 I am on Ubuntu. I try to create a very basic (one empty function
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?
Nov 18 2016