[comp.text.tex] Help with c++2latex

wagner@smith.cs.unc.edu (Michael Wagner) (03/21/91)

I recently downloaded the c++2latex files from ymir.claremnt.edu.
When I typed "make all", I did not get an executable, instead I
got a bunch of .o files.  Then I linked the .o files by typing 

	gcc -o c++2latex c++2latex.o getopt.o getopt1.o version.o

That seemd to work, in that I got an executable.  Unfortunately,
when I ran c++2latex on c++2latex.c, I got a c++2latex.tex that
LaTeX could not process.  When I typed "latex c++2latex.tex", 
LaTeX gave me:

	This is TeX, C Version 2.98 (no format preloaded)
	(c++2latex.c
	LaTeX Version 2.09 <24 May 1989>
	LaTeX error.  See LaTeX manual for explanation.
              Type  H <return>  for immediate help.
	! Missing \begin{document}.
	\@latexerr ...for immediate help.}\errmessage {#1}

	<to be read again>
                   /
	l.1 /
	     * A lexical scanner generated by flex */
	?

Did I do something wrong in the compilation?  I don't think
that I've got the wrong version of flex.  (I typed "make
workaround" as in the README file, and got that it didn't
know what "workaround" meant).  As I am a novice c++ and 
LaTeX user, I'm not quite sure where things went wrong.  
Has anyone else gotten this program to run?

I'm on a Sun 3 if that makes any difference, running SunOS4.01.

Thanks.

Mike Wagner

wagner@smith.cs.unc.edu (Michael Wagner) (03/21/91)

I realized that I needed to use the -c option to get
a complete LaTeX source file.  Now when I try to LaTeX
the result of "c++2latex -c -o test.tex c++2latex.c", I
get:

	This is TeX, C Version 2.98 (no format preloaded)
	(test.tex
	LaTeX Version 2.09 <24 May 1989>
	(/usr/local/lib/TeX/inputs/article.sty
	Document Style `article' <16 Mar 88>.
	(/usr/local/lib/TeX/inputs/art11.sty)) (test.aux)
	! Missing \endcsname inserted.
	<to be read again>
	                   \protect
	\{->\protect
	             \@lb
	\@ifundefined #1#2#3->\expandafter \ifx \csname #1
	                                                  \endcsname \relax #2\else ...

	\begin ... \@currenvir {#1}\csname #1\endcsname }}
                                                  \begingroup \@endpefalse \...
	l.15 \begin\{
             document\}\mbox{}\\
	?

What am I doing wrong?

(Sorry about th earlier posting.  I'd used a program earlier called
c2latex that didn't require a -c option).

Mike Wagner
wagner@cs.unc.edu