From: Don S. <sp...@or...> - 2001-10-04 20:30:36
|
Hi, I'm trying to compile plplot 5.0.4 on an IBM-SP running AIX. If I edit the Makefile (in /plplot/tmp) to use the GCC compiler, everything works fine. However, since IBM's xlc compiler makes faster code, I would rather use that. Unfortunately, xlc stumbles over some parts of pstex.c which use characters such as #'s and backslashes in writing out postscript commands: plplot-5.0.4> make cd tmp; make default xlc -fpic -c -qcpluscmt -qdbcs -I. pstex.c "pstex.c", line 47.43: 1506-186 (S) String literal must be ended before the end of line. "pstex.c", line 48.1: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 48.2: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 48.3: 1506-276 (S) Syntax error: possible missing ')'? "pstex.c", line 49.1: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 49.2: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 50.1: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 50.2: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 50.13: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 50.14: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.1: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.2: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.13: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.14: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.27: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.28: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.32: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.33: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.44: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 51.45: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 52.1: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 52.2: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 52.7: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 52.8: 1506-191 (E) The character \ is not a valid C source character. "pstex.c", line 52.19: 1506-191 (E) The character # is not a valid C source character. "pstex.c", line 52.21: 1506-191 (E) The character # is not a valid C source character. "pstex.c", line 52.23: 1506-191 (E) The character # is not a valid C source character. "pstex.c", line 52.25: 1506-191 (E) The character # is not a valid C source character. etc. The lines in pstex.c that xlc finds offensive are, for example: fprintf(fp,"\\begin{picture}(0,0)(0,0)%% \\includegraphics[scale=1.,clip]{%s}%% \\end{picture}%% \\setlength{\\unitlength}{%fbp}%% \\begingroup\\makeatletter\\ifx\\SetFigFont\\undefined%% \\gdef\\SetFigFont#1#2#3#4#5{%% \\reset@font\\fontsize{#1}{#2pt}%% \\fontfamily{#3}\\fontseries{#4}\\fontshape{#5}%% \\selectfont}%% \\fi\\endgroup%%\n", fprintf(fp,"\\put(%d,%d){\\rotatebox{%.1f}{\\makebox(0,0)[%c%c] {\\SetFigFont{%.1f}{12}", args->x, args->y, alpha, jst, ref, ft_ht); fprintf(fp,"%% Your text follows: %s }}}}", cptr); Any idea what I need to do to make this acceptable to the xlc compiler? -- _________________________________________________________ Donald A. Spong, Fusion Energy Theory, ORNL Snail-mail: P. O. Box 2009 Oak Ridge, Tennessee 37831-8071 Phone: (865) 574-1304 FAX: (865) 576-7926 E-mail: sp...@or... _________________________________________________________ |
From: <jca...@in...> - 2001-10-05 01:23:16
|
On Thursday 04 October 2001 21:30, Don Spong wrote: | Hi, | I'm trying to compile plplot 5.0.4 on an IBM-SP running AIX. If I | edit the Makefile (in /plplot/tmp) to use the GCC compiler, | everything works fine. However, since IBM's xlc compiler makes | faster code, I would rather use that. Unfortunately, xlc stumbles | over some parts of pstex.c which use characters such as #'s and | backslashes in writing out postscript commands: | | plplot-5.0.4> make | cd tmp; make default | xlc -fpic -c -qcpluscmt -qdbcs -I. pstex.c | "pstex.c", line 47.43: 1506-186 (S) String literal must be ended | before the end of line. Hi, The best advise I can give to you is to disable the pstex driver at=20 configure time issuing =09./configure --disable-pstex <plus_other_options> I will try to solve that problem as soon as I can. Thanks, Joao |
From: <jca...@in...> - 2001-10-05 17:48:21
|
On Friday 05 October 2001 02:36, Jo=E3o Cardoso wrote: | On Thursday 04 October 2001 21:30, Don Spong wrote: | | Hi, | | I'm trying to compile plplot 5.0.4 on an IBM-SP running AIX. If | | I edit the Makefile (in /plplot/tmp) to use the GCC compiler, | | everything works fine. However, since IBM's xlc compiler makes | | faster code, I would rather use that. Unfortunately, xlc | | stumbles over some parts of pstex.c which use characters such as | | #'s and backslashes in writing out postscript commands: | | | | plplot-5.0.4> make | | cd tmp; make default | | xlc -fpic -c -qcpluscmt -qdbcs -I. pstex.c | | "pstex.c", line 47.43: 1506-186 (S) String literal must be ended | | before the end of line. | | Hi, | | The best advise I can give to you is to disable the pstex driver at | configure time issuing | | =09./configure --disable-pstex <plus_other_options> I have corrected the pstex.c gccism constructs, testing with "gcc=20 -Wall -pedantic -ansi"! and I will CVS commit them soon. However ntk.c has such constructs. I will not change them, as ntk.c=20 is still under dev. Joao | | I will try to solve that problem as soon as I can. | Thanks, | | Joao | | _______________________________________________ | Plplot-general mailing list | Plp...@li... | https://lists.sourceforge.net/lists/listinfo/plplot-general |