[OS X TeX] wp2LaTeX

Stefan Walsen stefan at walsen.net
Fri Sep 10 03:34:44 CEST 2004

Ramon wrote:
>> 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>.

Jan Anderssen wrote:
> i tried to compile wp2latex too (./configure and make all in the main 
> directory; unsucessfully, despite best intentions :)), and ran into the 
> following problems:
> 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

You have to tell newer gcc versions explicitly that you want to convert 
an expression of one type (here: long unsigned int) into another, 
smaller type (here: unsigned int).

If you insert "(unsigned int)" (with the parentheses, but without the 
quotes) right after the opening square bracket at the offending lines, 
you will be able to compile the program. You might also have to tell 
linker where you libintl.dylib is, like you had to tell him about the 
location of the header file, and make sure $(GCC) is set to g++ .

I don't have any WordPerfect files, so I can't try it out, but I hope 
this helps.

--------------------- 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 macostex-archives mailing list