Subject: Re: LIBSSH2-DEV C++ Integration issue [Linker error] undefined reference to `libssh2_

Re: LIBSSH2-DEV C++ Integration issue [Linker error] undefined reference to `libssh2_

From: Peter Stuge <peter_at_stuge.se>
Date: Tue, 13 Sep 2011 02:43:00 +0200

Ivan Pechorin wrote:
> > LIBS = -L"C:/Dev-Cpp/lib" -L"C:/MyApps/libssh2-1.2.5/lib"
>
> Try adding the necessary libraries ("-lssh2 -lws2_32") to the end of LIBS:
>
> LIBS = -L"C:/Dev-Cpp/lib" -L"C:/MyApps/libssh2-1.2.5/lib" -lssh2 -lws2_32
>
> P.S. I didn't use gcc on Win32, so I'm not sure what's the proper way of
> linking against the WinSock2 (ws2_32.dll) here.

Exactly as you write.

//Peter
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2011-09-13