Computer Chess Club Archives


Search

Terms

Messages

Subject: PGN-Extract fix under OS X

Author: Joshua Shriver

Date: 11:28:46 03/18/04

Go up one level in this thread


Just in case you're on an OS X machine.

I just downloaded it, and in order to compile it you need to make these changes:

<HR>

Makefile: lines 33-35

Before:

CFLAGS=-c -pedantic -Wall -Wshadow -Wformat -Wpointer-arith \
        -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings $(DEBUGINFO)\
        -I/usr/local/lib/ansi-include

After:

CFLAGS=-c -pedantic -Wall -Wshadow -Wformat -Wpointer-arith \
        -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings $(DEBUGINFO)\
        -I/usr/local/lib/ansi-include -D__DARWIN__

Basically just adding the __DARWIN_ macro

<HR>

argsfile.c line 67

Before:

#if defined(__unix__) || defined(__linux__)

After:

#if defined(__unix__) || defined(__linux__) || defined(__DARWIN__)

This'll catch it so strcompare uses strcasecmp.

<HR>

Then just 'make' :)


On March 18, 2004 at 09:24:32, Jaime Benito de Valle Ruiz wrote:

>Does anyone know any program that can change normal PGN files with the usual
>notation Nf3, 0-0, etc... into this notation: g1f3, e8g8?
>Thanks in advance,
>
>  Jaime



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.