Page 1 of 1

Problem connecting to FICS in VC++ Debug Mode

PostPosted: 17 Sep 2010, 06:50
by netiad
I'm running Visual Studio 2008. I've been able to compile and run the program in debugging mode. I've been able to add a feature, make a release and connect to FICS from the release.

The problem comes when I run the program in debugging mode and try to connect to FICS. I get a Fatal Error: "Could not connect to host freechess.org, port 5000: The system cannot find the file specified."

I'm hoping one of you have encountered this error or know what I can do to go about resolving this error.

Thanks in advance.

Re: Problem connecting to FICS in VC++ Debug Mode

PostPosted: 18 Sep 2010, 15:38
by netiad
The problem could be from a setting I'm missing in my project to point to a file its looking at while trying to connect to fics.

It could also be the hackish way I configured the .rc file and changed source files so winboard would compile in visual studio 2008.

The hackish steps I took are:

1. changed OutputChatMessage in wchat.c to: void OutputChatMessage(int partner, char *text) { return; }.

This was to get me past the errors: wchat.c(282) : error C2143: syntax error : missing ';' before 'type'
wchat.c(283) : error C2065: 'n' : undeclared identifier
wchat.c(283) : error C2065: 'n' : undeclared identifier
wchat.c(283) : error C2065: 'n' : undeclared identifier

2. Commented out #include <unistd.h>, afaik unistd.h is a library for process control in unix / linux for things like pipes and forks. I didn't have any other errors after commenting it out so I'm assuming what was using it wasn't using it under the windows plateform.

This got me past this error: parser.c(1816) : fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

3. Changed "MANIFEST_RESOURCE_ID 24" to "MANIFEST_RESOURCE_ID 5000" inside winboard.rc

This got me past this error: LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt

The source I'm compiling on is xboard-4.4.4