Search found 2 matches

by houlalajaimal
Fri Mar 17, 2023 9:45 am
Forum: Linux
Topic: Compilation error Telldus-core-2.1.1
Replies: 3
Views: 8395

Compilation error Telldus-core-2.1.1

HI, I try to compile telldus-core-2.1.1 on archlinux but I get this error: /telldus-core-2.1.1/common/Socket_unix.cpp: In destructor virtual TelldusCore::Socket::~Socket() /telldus-core-2.1.1/common/Socket_unix.cpp:44:18: erreur: close was not declared in this scope The code in Socket_unix.cpp Socke...
by houlalajaimal
Fri Mar 17, 2023 9:45 am
Forum: Linux
Topic: Compilation error Telldus-core-2.1.1
Replies: 3
Views: 8395

Re: Compilation error Telldus-core-2.1.1

I found !!! Need to add the include <unistd.h> for linux in the common/Socket.h FROM #ifdef _WINDOWS 7 #include <windows.h> 8 typedef HANDLE SOCKET_T; 9 #else 10 typedef int SOCKET_T; 11 #endif TO #ifdef _WINDOWS 7 #include <windows.h> 8 typedef HANDLE SOCKET_T; 9 #else #include <unistd.h> 10 typede...