Page MenuHomePhabricator

0.8.4 ssize_t comiler errors with visual studio
Closed, ResolvedPublic

Description

See https://ci.appveyor.com/project/chcg/nppftp/builds/19556136

for VS2015 and VS2017 the builds with 0.8.4 fail due to missing definition of ssize_t.

ssize_t seems to be just posix and not part of c/c++.

See e.g. https://groups.google.com/forum/#!topic/snappy-compression/xzKxBNeAREc
and
https://docs.microsoft.com/en-us/windows/desktop/winprog/windows-data-types#size-t

Compiler errors with v141_xp:

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(88): error C2061: syntax error: identifier 'ssh_connector_fd_read' [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(88): error C2059: syntax error: ';' [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(88): error C2059: syntax error: '<parameter-list>' [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(91): error C2061: syntax error: identifier 'ssh_connector_fd_write' [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(91): error C2059: syntax error: ';' [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(91): error C2059: syntax error: '<parameter-list>' [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

C:\projects\nppftp\_build\x64\obj\libssh\src\connector.c(247): error C2065: 'ssize_t': undeclared identifier [C:\projects\nppftp\_build\NppFTP3rdPartyPrerequists.vcxproj]

Event Timeline

chcg created this task.Oct 17 2018, 4:34 AM
chcg renamed this task from 0.8.4 ssize_t with visual studio to 0.8.4 ssize_t comiler errors with visual studio .
chcg added a project: Restricted Project.
chcg added a comment.Oct 29 2018, 8:04 PM

Thanks, see https://ci.appveyor.com/project/ashkulz/nppftp/builds/19889010 is working now.
Unfortunately I'm not able to build the libssh project from git to verify fixes immediately.
I will further work on that.