Problem connecting to FICS in VC++ Debug Mode

Discussions about the WinBoard protocol. Here you can also report bugs and request new features.

Moderators: hgm, Andres Valverde

Problem connecting to FICS in VC++ Debug Mode

Postby netiad » 17 Sep 2010, 06:50

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.
netiad
 
Posts: 16
Joined: 16 Sep 2010, 03:02

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

Postby netiad » 18 Sep 2010, 15:38

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
netiad
 
Posts: 16
Joined: 16 Sep 2010, 03:02


Return to WinBoard development and bugfixing

Who is online

Users browsing this forum: No registered users and 16 guests