[OS X TeX] wp2LaTeX
Jan Anderssen
jan at linguist.umass.edu
Thu Sep 9 12:11:47 EDT 2004
hi.
> I was wondering if anyone in the list would know how to compile
> wp2LaTeX in “OS X” (it can be
> compiled in UNIX). One can download the source at
> <http://www.ctan.org/tex-archive/support/wp2latex/wp2latex-3.4.zip>.
i tried to compile wp2latex too (./configure and make all in the main
directory; unsucessfully, despite best intentions :)), and ran into the
following problems:
(1) wp2latex includes libintl.h
some fink packages installed that, so i had it in /sw/include.
i could make wp2latex find it by editing the following line in
sources.cc/makefile so that it reads:
FLAGS=-g -O2 -fno-rtti -fno-exceptions -I./atoms/include/
-I./cp_lib/ -I/sw/include/ -DFINAL -Wno-long-double #-Wall #-static
(2) i ran into trouble when wp2latex tried to include values.h, which
is not available on a mac. apple says to use limits.h instead
(http://developer.apple.com/technotes/tn2002/tn2071.html), but neither
including that (by changing the code in sources.cc/images/ras_img.cc),
nor defining MAXLONG and M_PI myself helped me successfully compile it.
i get a little further, but end up with the error message below.
somebody with programming experience is needed i suspect. i wrote to
the maintainer, but since it appears to be a one person project, i
don't know how much time/enegery/resources he would have to spare.
maybe somebody else has an idea? c++ programmers out there?
tia,
jan
definitions i added where values.h was supposed to be included (in
sources.cc/images/ras_img.cc):
#if defined(_MSC_VER) || defined(__CYGWIN32__)
#define MAXLONG 0x7fffffff
#define M_PI 3.14159265358979323846
#else
// this used to only say #include <values.h>
#include <limits.h>
#ifndef MAXCHAR
#define MAXCHAR ((char)0x7f)
#endif
#ifndef MAXSHORT
#define MAXSHORT ((short)0x7fff)
#endif
#ifndef MAXINT
#define MAXINT ((int)0x7fffffff)
#endif
#ifndef MAXLONG
#define MAXLONG ((long)0x7fffffff)
#endif
#ifndef MINCHAR
#define MINCHAR ((char)0x80)
#endif
#ifndef MINSHORT
#define MINSHORT ((short)0x8000)
#endif
#ifndef MININT
#define MININT ((int)0x80000000)
#endif
#ifndef MINLONG
#define MINLONG ((long)0x80000000)
#endif
#define M_PI 3.14159265358979323846
#endif
error message i get stuck with (concerns a different file, pass1_6.cc,
maybe related, i don't know):
g++ -g -O2 -fno-rtti -fno-exceptions -I./atoms/include/ -I./cp_lib/
-I/sw/include/ -DFINAL -Wno-long-double -c pass1_6.cc -o pass1_6.o
-D__gettext__
pass1_6.cc: In function `void IncUserCounter(TconvertedPass1_WP6*)':
pass1_6.cc:1670: error: ambiguous overload for `string& [long unsigned
int]'
operator
pass1_6.cc:1670: error: candidates are: operator[](const char*, int)
<built-in>
atoms/include/strings.h:85: error: char&
string::operator[](unsigned int) const
atoms/include/strings.h:87: error: char&
string::operator[](int) const
pass1_6.cc: In function `void DecUserCounter(TconvertedPass1_WP6*)':
pass1_6.cc:1720: error: ambiguous overload for `string& [long unsigned
int]'
operator
pass1_6.cc:1720: error: candidates are: operator[](const char*, int)
<built-in>
atoms/include/strings.h:85: error: char&
string::operator[](unsigned int) const
atoms/include/strings.h:87: error: char&
string::operator[](int) const
pass1_6.cc: In function `void UserCounter(TconvertedPass1_WP6*, long
unsigned
int&)':
pass1_6.cc:1788: error: ambiguous overload for `string& [long unsigned
int]'
operator
pass1_6.cc:1788: error: candidates are: operator[](const char*, int)
<built-in>
atoms/include/strings.h:85: error: char&
string::operator[](unsigned int) const
atoms/include/strings.h:87: error: char&
string::operator[](int) const
pass1_6.cc: In function `void SetUserCounter(TconvertedPass1_WP6*)':
pass1_6.cc:2050: error: ambiguous overload for `string& [long unsigned
int]'
operator
pass1_6.cc:2050: error: candidates are: operator[](const char*, int)
<built-in>
atoms/include/strings.h:85: error: char&
string::operator[](unsigned int) const
atoms/include/strings.h:87: error: char&
string::operator[](int) const
make[1]: *** [pass1_6.o] Error 1
make: *** [all] Error 2
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list