Menu

#9 pdf_inc.p compile error on unix

open
nobody
None
5
2005-01-06
2005-01-06
Anonymous
No

When I try to compile pdf_inc.p version 3.2.3 on unix
(IBM AIX 5.1) the following errors occur:

&THEN without matching &IF or &ELSEIF. (2949)
** Preprocessor could not understand line 6369 in
file './srcdev/system/pdf_inc.p'. (2124)
** ./srcdev/system/pdf_inc.p Could not understand line
6351. (193)
&ELSE with no matching &IF or &ELSEIF. (2950)
** Preprocessor could not understand line 6394 in
file './srcdev/system/pdf_inc.p'. (2124)
** ./srcdev/system/pdf_inc.p Could not understand line
6393. (193)
&ENDIF without matching &IF, &ELSEIF or &ELSE. (2951)
** Preprocessor could not understand line 6479 in
file './srcdev/system/pdf_inc.p'. (2124)
** ./srcdev/system/pdf_inc.p Could not understand line
6478. (193)

It has to do with the pdf_replace_text procedure:

PROCEDURE pdf_replace_text: /* PRIVATE */
DEFINE INPUT-OUTPUT PARAMETER pdfText AS
CHARACTER NO-UNDO.

/* Replace any special characters in the data string
since this
will create a bad PDF doccument */
pdfText = REPLACE(pdfText,"~\","~\\").
pdfText = REPLACE(pdfText,"(","~\(").
pdfText = REPLACE(pdfText,")","~\)").
pdfText = REPLACE(pdfText,"[","~\[").
pdfText = REPLACE(pdfText,"]","~\]").

END. /* pdf_replace_text */

Discussion

  • Nobody/Anonymous

    Logged In: NO

    pdfText = REPLACE(pdfText,"~\","~\\").

    should read

    pdfText = REPLACE(pdfText,"~\","~\~\").

     
  • Todd White

    Todd White - 2005-03-15

    Logged In: YES
    user_id=1089326

    pdfText = REPLACE(pdfText,"~\","~\\").
    Should read
    pdfText = REPLACE(pdfText,"~\","~\~\").

    for it to compile properly

     

Log in to post a comment.

MongoDB Logo MongoDB