#209: Failure in build of the example programs (1.2.7 static on MinGW)
--------------------------+-------------------------------------------------
Reporter: arithy | Owner:
Type: build error | Status: new
Priority: normal | Milestone:
Component: examples | Version: 1.2.7
Keywords: | Blocks:
Blocked By: |
--------------------------+-------------------------------------------------
I failed to build 1.2.7 on MinGW using the static library option.
The make command stopped at the example program build phase.
To work around this problem, the following modifications were required:
- include/libssh2.h: [invalidate {{{__declspec}}}]
{{{
# if defined(LIBSSH2_WIN32) && defined(LIBSSH2_WINDLL)
- # ifdef LIBSSH2_LIBRARY
- # define LIBSSH2_API __declspec(dllexport)
- # else
- # define LIBSSH2_API __declspec(dllimport)
- # endif /* LIBSSH2_LIBRARY */
+ # define LIBSSH2_API
# else /* !LIBSSH2_WIN32 */
}}}
- example/Makefile: [add GDI32 library]
{{{
- LIBS = -lws2_32
+ LIBS = -lws2_32 -lgdi32
}}}
-- Ticket URL: <http://trac.libssh2.org/ticket/209> libssh2 <http://trac.libssh2.org/> C library for writing portable SSH2 clients _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-develReceived on 2011-02-01