Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!samsung!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!deimos.cis.ksu.edu!usenet!jmd From: jmd@usenet.umr.edu (Jim Dumser) Newsgroups: comp.sys.apollo Subject: Re: /sys5.3/bin/cc bug? Message-ID: <546@umrisca.usenet.umr.edu> Date: 22 Mar 90 16:52:50 GMT References: <179@blender.UUCP> Sender: usenet@usenet.umr.edu Reply-To: jmd@umree.UUCP (Jim Dumser) Organization: University of Missouri - Rolla Lines: 37 In article <179@blender.UUCP> herb@blender.UUCP (Herb Peyerl) writes: >The sys5.3 compiler reports "Unterminated character string" after >the 'r'... The bsd4.3 compiler doesn't have a problem with it at all... >If you use only three (3) apostrophes (') then everything is fine, however >anymore than three and it seems to blow up... Yeah, I've found this an other bugs too. I don't know which version of the sys5.3 cc I was using; the OS was SR 10.1. Anyway, "System V" is unsupported here at UMR, and we don't get too much help with minor things like bug reports ("yah, that's a bug alright"). My solution: don't use it! #! /bin/sh if [ -n "$CCT" ]; then type="-T $CCT" else type= fi echo /bsd4.3/bin/cc $type -I$HOME/include -L$HOME/lib $* /bsd4.3/bin/cc $type -I$HOME/include -L$HOME/lib $* I just use the bsd version, and tell it specifically to do Sys V compile (the -T flag). Define CCT in your environment as either "sys5.3" or "bsd4.3." I just checked, and apparently they've replaced -T with -A {sys,run} (-T still works). So you might change the type definition to something like type="-A sys,$CCT -A run,$CCT" (you may only need one, I can't tell from the man page). Jim +-------------------------------------------------------+ | The fear of the Lord is the beginning of knowledge, | | but fools despise wisdom and discipline. Proverbs 1:7 | |-------------------------------------------------------| | Internet: jmd@ee.umr.edu | M S - D O S . . . | | UUCP: ...uunet!umree!jmd | Just say "NO!" | +-------------------------------------------------------+