From the error message "error: 'close' was not declared in this scope", it seems that the function 'close' is not defined, but this function is defined in included file <sys/socket.h>.
There is also a strange message "linker input file unused because linking not done" reported for file ioport.h at line 29, which is very close to the #include <sys/socket.h> line.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I'm not an expert and I try to cross-compile linknx but I get this error:
Does someone know this error and has an solution what I could try to fix?
with Greetings Axel
Hi,
From the error message "error: 'close' was not declared in this scope", it seems that the function 'close' is not defined, but this function is defined in included file <sys/socket.h>.
There is also a strange message "linker input file unused because linking not done" reported for file ioport.h at line 29, which is very close to the #include <sys/socket.h> line.
Hi,
The problem is perhaps due to a change in GCC 4.7.
You can try to add the following line at top of file ioports.cpp :
#include <unistd.h>
and see if it fixes the problem (this bugfix is already in CVS and will be included in next release)
Last edit: jef2000 2013-02-17
I'm having the same compilation error on a debian amd64 platform.
I'v tried the fix, and it works, thanks
Last edit: Brecht 2013-09-14