"Alexander Lamaison" <sw...@lammy.co.uk> a écrit : > 2009/1/9 Neil Gierman <ngier...@roadrunn.com>: > >> I use Visual Studio 2008 and my Defines for the libssh2 project are: >> >> WIN32;_DEBUG;LIBSSH2_WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRE >> CATE for debug builds and: >> >> WIN32;NDEBUG;LIBSSH2_WIN32;_LIB;_CRT_SECURE_NO_WARNINGS;_CRT_SECURE_NO_DEPRE >> CATE for release builds. >> >> Also don't forget that you need to copy libssh2_config.h from the win32 >> directory to the src directory (that's a pre-build event in my project). > > My defines are similar and I also have the following include paths set: > > >AdditionalIncludeDirectories="libssh2\include;libssh2\win32;openssl\inc32; > zlib\include" > > which means users of my project can just dump libssh2 from the CVS > into the libssh2/ directory as-is and compile. They don't have to > copy or edit anything (though, off course, I have a custom .vcproj for > libssh2 in my top-level directory). Every little helps. >
Hi, That's very strange, for being sure that I have not a VStudio broken installation, I install it on my home computer, where it was never installed. I haven't install any plateform SDK, SUA SDK or MinGW environnement. Just the Visual Studio Express 2008, openssl0.9.8j for windows32, the vcredist, and the ZLIB for windows from here: http://gnuwin32.sourceforge.net/packages/zlib.htm This is my preprocessor definition for the release build, and for the three projects (libssh2_dll, libssh2_lib and tests): WIN32 NDEBUG LIBSSH2_WIN32 _LIB _CRT_SECURE_NO_WARNINGS _CRT_SECURE_NO_DEPRECATE This is all my include dirs: c:\program files\gnuwin32\include libssh2\win32 libssh2\include c:\openssl\include $(VCInstallDir)\include $(VCInstallDir)\atlmfc\include $(WindowsSDKDir)\include $(FrameworkSDKDir)include and for the lib dir: c:\program files\gnuwin32\lib libssh2\win32\Release_lib c:\openssl\lib $(VCInstallDir)lib $(VCInstallDir)\atlmfc\lib $(VCInstallDir)\atlmfc\lib\i386 $(WindowsSDKDir)\lib $(FrameworkSDKDir)lib $(VSInstallDir) $(VSInstallDir)lib I have modified the line 289 of the C:\Program Files\GnuWin32\include\zconf.h from this: # include <unistd.h> /* for SEEK_* and off_t */ to this //# include <unistd.h> /* for SEEK_* and off_t */ and I still have the same issue: ------ Début de la génération : Projet : tests, Configuration : Release Win32 ------ Compilation en cours... simple.c ..\include\libssh2.h(561) : error C2061: erreur de syntaxe : identificateur 'libssh2_channel_read_ex' ..\include\libssh2.h(561) : error C2059: erreur de syntaxe : ';' ..\include\libssh2.h(561) : error C2059: erreur de syntaxe : 'type' ..\include\libssh2.h(584) : error C2061: erreur de syntaxe : identificateur 'libssh2_channel_write_ex' ..\include\libssh2.h(584) : error C2059: erreur de syntaxe : ';' ..\include\libssh2.h(584) : error C2059: erreur de syntaxe : 'type' Le journal de génération a été enregistré à l'emplacement "file://c:\Documents and Settings\gele\Mes documents\devel\libssh2-1.0.1-20090110\win32\Release\BuildLog.htm" tests - 6 erreur(s), 0 avertissement(s) ========== Génération : 0 a réussi, 1 a échoué, 0 mis à jour, 0 a été ignoré ========== Am I the only one unlucky noob dev? :-/ -- Cordialement ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel