From: Tri S. <tr...@us...> - 2010-06-25 06:31:04
|
Hi there, The latest support for YMSG16 requires SSL connection, hence you need SSL library in your project if you build the sample clients (i.e. sample_client.c and autoresponder.c). You can get OpenSSL library and add it to your project path. Note that libyahoo2 itself doesn't need the SSL headers to compile. Regarding the obsolete interfaces of 0.7.7 in building libyahoo2 dll, you can safely remove its listing in the .def file. The .def file for Windows dll project is currently out of sync with the main autoconf build (you can see that the file config.h in windows directory still exposes libyahoo2 0.7.7, while we are currently in 1.0.0). I have an update to our Windows support to allow automatic synchronization with our library releases, this will including new support for Microsoft Visual Studio 2010 and get rid of .def file. But since these updates touched almost all libyahoo2 interfaces, I still need to have more testing in it. I'm planning to incorporate my latest changes in libyahoo2 Windows support this weekend or may be next week. For the moment you can still build the libyahoo2 dlls and samples by following the instructions above. Cheers, Tri S. On Wed, Jun 23, 2010 at 11:51 PM, Modis Laszlo <mod...@ya...>wrote: > Hi! I can't compile libyahoo2.... > > > ------ Build started: Project: libyahoo2_dll, Configuration: Debug Win32 > ------ > Compiling... > crypt.c > libyahoo2.c > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2597) : warning C4018: '<=' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2602) : warning C4018: '<' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2611) : warning C4018: '<' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2653) : warning C4018: '<' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2734) : warning C4018: '>' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2757) : warning C4018: '<=' : > signed/unsigned mismatch > md5.c > sha1.c > yahoo_fn.c > yahoo_httplib.c > yahoo_list.c > yahoo_util.c > Generating Code... > Linking... > libyahoo2.def : error LNK2001: unresolved external symbol yahoo_get_url_fd > libyahoo2.def : error LNK2001: unresolved external symbol > yahoo_get_url_handle > libyahoo2.def : error LNK2001: unresolved external symbol > yahoo_reject_buddy > .\.libyahoo2-dll-debug/libyahoo2d.lib : fatal error LNK1120: 3 unresolved > externals > Build log was saved at "file://d:\Program Files\Microsoft Visual Studio > 9.0\Microsoft Visual C++ 2008 Express Edition with SP1 - > ENU\Projects\libyahoo2-1.0.0\src\windows\vc9\.libyahoo2-dll-debug\BuildLog.htm" > libyahoo2_dll - 4 error(s), 6 warning(s) > ------ Build started: Project: libyahoo2, Configuration: Debug Win32 ------ > Compiling... > libyahoo2.c > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2597) : warning C4018: '<=' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2602) : warning C4018: '<' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2611) : warning C4018: '<' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2653) : warning C4018: '<' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2734) : warning C4018: '>' : > signed/unsigned mismatch > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\libyahoo2.c(2757) : warning C4018: '<=' : > signed/unsigned mismatch > md5.c > sha1.c > yahoo_fn.c > yahoo_httplib.c > yahoo_list.c > yahoo_util.c > crypt.c > Generating Code... > Creating library... > Build log was saved at "file://d:\Program Files\Microsoft Visual Studio > 9.0\Microsoft Visual C++ 2008 Express Edition with SP1 - > ENU\Projects\libyahoo2-1.0.0\src\windows\vc9\.libyahoo2-debug\BuildLog.htm" > libyahoo2 - 0 error(s), 6 warning(s) > ------ Build started: Project: yahoo, Configuration: Debug Win32 ------ > Compiling... > sample_client.c > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\sample_client.c(52) : fatal error C1083: > Cannot open include file: 'openssl/ssl.h': No such file or directory > Build log was saved at "file://d:\Program Files\Microsoft Visual Studio > 9.0\Microsoft Visual C++ 2008 Express Edition with SP1 - > ENU\Projects\libyahoo2-1.0.0\src\windows\vc9\.yahoo-debug\BuildLog.htm" > yahoo - 1 error(s), 0 warning(s) > ------ Build started: Project: autoresponder_dll, Configuration: Debug > Win32 ------ > Compiling... > autoresponder.c > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\autoresponder.c(52) : fatal error C1083: > Cannot open include file: 'openssl/ssl.h': No such file or directory > Build log was saved at "file://d:\Program Files\Microsoft Visual Studio > 9.0\Microsoft Visual C++ 2008 Express Edition with SP1 - > ENU\Projects\libyahoo2-1.0.0\src\windows\vc9\.autoresponder-dll-debug\BuildLog.htm" > autoresponder_dll - 1 error(s), 0 warning(s) > ------ Build started: Project: autoresponder, Configuration: Debug Win32 > ------ > Compiling... > autoresponder.c > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\autoresponder.c(52) : fatal error C1083: > Cannot open include file: 'openssl/ssl.h': No such file or directory > Build log was saved at "file://d:\Program Files\Microsoft Visual Studio > 9.0\Microsoft Visual C++ 2008 Express Edition with SP1 - > ENU\Projects\libyahoo2-1.0.0\src\windows\vc9\.autoresponder-debug\BuildLog.htm" > autoresponder - 1 error(s), 0 warning(s) > ------ Build started: Project: yahoo_dll, Configuration: Debug Win32 ------ > Compiling... > sample_client.c > d:\program files\microsoft visual studio 9.0\microsoft visual c++ 2008 > express edition with sp1 - > enu\projects\libyahoo2-1.0.0\src\sample_client.c(52) : fatal error C1083: > Cannot open include file: 'openssl/ssl.h': No such file or directory > Build log was saved at "file://d:\Program Files\Microsoft Visual Studio > 9.0\Microsoft Visual C++ 2008 Express Edition with SP1 - > ENU\Projects\libyahoo2-1.0.0\src\windows\vc9\.yahoo-dll-debug\BuildLog.htm" > yahoo_dll - 1 error(s), 0 warning(s) > ========== Build: 1 succeeded, 5 failed, 0 up-to-date, 0 skipped ========== > |