[Libssh] Staticaly linked and still require DLL?
Keisial
keisial at gmail.com
Tue Mar 24 17:22:38 CET 2009
Stingray wrote:
> Hello,
>
> I'm trying to staticaly link the libssh.a in my project, everything
> works but I still need to have the libssh.dll. ?!?
>
How are you creating libssh.a?
.a files can be used to link with the .dll or to be static libs.
> I have compiled the library using dev-cpp. with the included project
> file and the Makefile.Windows. In which I had to comment out the lines
> refering to Visual Studio.
>
Hadn't seen that changeset (r159). IMHO it makes some things harder to
compile.
> Any idea on how I can build a standalone client that will not require
> the dll?
>
To create a static libssh.a just add the following:
libssh.a: $(libssh_OBJS)
ar rcs libssh.a $(libssh_OBJS)
(the second line begins with a tab, not spaces)
then compile to get libssh.a ( mingw32-make -f Makefile.Windows libssh.a )
> Any help would be greatly appreciated.
>
> Thanks
> Pierre
>
Hope that helps.
More information about the Libssh
mailing list