[Libssh] Staticaly linked and still require DLL?
Stingray
stingray at gmx.ca
Tue Mar 24 21:00:02 CET 2009
Keisial a écrit :
> 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.
>
>
The libssh.a is create with Makefile.Windows -- > STATICLIB libssh.a
>> 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 )
>
>
Tried this, and now when I compile my test client, the linker complains
about a million references not found.
>> Any help would be greatly appreciated.
>>
>> Thanks
>> Pierre
>>
>>
> Hope that helps.
>
>
> _______________________________________________
> Libssh mailing list
> Libssh at cerkinfo.be
> http://www.cerkinfo.be/cgi-bin/mailman/listinfo/libssh
>
>
More information about the Libssh
mailing list