<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: The simple C math example for WSIT in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5422067#M36611</link>
    <description>&lt;P&gt;That CC command implies multiple problems lurk here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First off, there should not be a CC symbol left around for generic CC compilations. &amp;nbsp;Compilations that require that should be implemented within very specific build procedures, preferrably mapped to a different verb, and definitely not overmapped into the generic CC command. &amp;nbsp;&amp;nbsp;(Similarly, setting up other DCL symbols that overmap any of the other DCL command verbs is also generally cosindered poor practice.) &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondary, that list of C compiler qualifiers implies the code that's involved is not so much being ported being covered over with a metric ton of spackle and paint and hackery, and it'll probably be an unstable code-base at best. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The /STANDARD=VAXC disables most of the error checks, and many of which will point ot legitimate run-time bugs in the code, and that particular CC command disables most of the rest. &amp;nbsp; Enabling and fixing the compiler-generated errors typically provides a substantial payback in terms of application stability and maintainability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For generic builds here, delete the CC symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better, get that generic symbol from the user and system-wide logins and - only where needed - move it over into the application-specific build procedures. &amp;nbsp;Avoid use of "CC" as the compiler symbol (don't overlap DCL verbs, as a general rule), and preferably don't equate the symbol as a global at all, where that's feasible. &amp;nbsp;It's common to see CC 'ccopt' here, and set up the ccopt symbol with what's required for that specific compilation.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Dec 2011 19:05:20 GMT</pubDate>
    <dc:creator>Hoff</dc:creator>
    <dc:date>2011-12-19T19:05:20Z</dc:date>
    <item>
      <title>The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5408169#M36606</link>
      <description>&lt;P&gt;Hello anybody out there and thank you in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am going through the WSIT documentation for setting up the simple C match service and I am getting all sorts of complilation errors when performing @BUILD-MATH-SERVER.COM.&amp;nbsp; The previous steps worked fine.&amp;nbsp; I tried to change the template that genrates the code to use /* */ for comments instead of //.&amp;nbsp; This worked for the generated files, but I am getting all kinds of other errors from files I know nothing about.&amp;nbsp; Below are a few of the errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// * Items are licensed to the U.S. Government under vendor's standard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * ...........................................................^ %CC-E-NLCHAR, An unexpected newline character is present in a character constant. at line number 10 in module FIXUP of text library SYS$COMMON:[SYSLIB]WSI$LIBRARY.TLB;1&lt;/P&gt;&lt;P&gt;// * Items are licensed to the U.S. Government under vendor's standard&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * ...........................................................^ %CC-W-CHAROVERFL, A character constant value requires more than sizeof(int) bytes of storage. at line number 10 in module FIXUP of text library SYS$COMMON:[SYSLIB]WSI$LIBRARY.TLB;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned cvt$v_invalid_output_type : 1; .......................................^ %CC-E-NOSEMI, Missing ";". at line number 92 in module CVTDEF of text library SYS$COMMON:[SYSLIB]SYS$STARLET_C.TLB;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned cvt$v_invalid_option : 1; ..................................^ %CC-E-NOSEMI, Missing ";". at line number 93 in module CVTDEF of text library SYS$COMMON:[SYSLIB]SYS$STARLET_C.TLB;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; unsigned cvt$v_result_infinite : 1; ...................................^ %CC-E-NOSEMI, Missing ";". at line number 94 in module CVTDEF of text library SYS$COMMON:[SYSLIB]SYS$STARLET_C.TLB;1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2011 19:19:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5408169#M36606</guid>
      <dc:creator>Ryan Rogalla</dc:creator>
      <dc:date>2011-12-02T19:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5408189#M36607</link>
      <description>&lt;P&gt;&amp;gt;I tried to change the template that genrates the code to use /* */ for comments instead of //.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It looks like you are using C89 vs the C99 Standard, which allows // comments.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Dec 2011 19:43:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5408189#M36607</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-12-02T19:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5409247#M36608</link>
      <description>&lt;P&gt;Check whether you have a DCL symbol CC defined, which specifies the c89 standard, like /standard=ansi89. You may want to use cc/standard= relaxed, c99 or latest. If the source code does not fully comply with the c99 standard, the latter two keywords will result in other informationals, warnings or errors. &amp;nbsp;Relaxed is what the VMS header files are written for. And relaxed is default when you have no /standard at all.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 12:00:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5409247#M36608</guid>
      <dc:creator>H.Becker</dc:creator>
      <dc:date>2011-12-05T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5409327#M36609</link>
      <description>&lt;P&gt;Please post output from the following three DCL commands:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;CC /VERSION&lt;/P&gt;&lt;P&gt;SHOW SYMBOL CC&lt;/P&gt;&lt;P&gt;SHOW LOGICAL DECC$*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This output will indicate your compiler version, whether you have a symbol around for the compiler (and what it is), your OpenVMS version, what OpenVMS architecture you are working on, as well as whatever run-time library feature customizations might be in play here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are also C RTL patch kits around for various OpenVMS versions. &amp;nbsp;The above won't show those patches, though that might become a factor as you're testing the results of the build.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Dec 2011 13:14:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5409327#M36609</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-12-05T13:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5422047#M36610</link>
      <description>&lt;P&gt;here is the output from your questions&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;cc /version&lt;/P&gt;&lt;P&gt;%DCL-I-IGNQUAL, qualifiers appearing before this item were ignored &amp;nbsp;\VERSION\ HP C V7.3-018 on OpenVMS IA64 V8.3-1H1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;show symbol/cc&lt;/P&gt;&lt;P&gt;&amp;nbsp;CC == "CC/FLOAT=IEEE/IEEE_MODE=DENORM/STANDARD=VAXC/SHOW=DICTIONARY/LIST/WARN=(DISABLE=(CVTDIFTYPES,EXTRAPRAGARGS,SIGNEDKNOWN,UNSU PPTYPE,UNKNOWNPRAGMA,CDDATTR,PROTOSCOPE,IGNOREEXTRA,INTRINSICINT,CXXPRAGMANA,LONGEXTERN),ENABLE=(UNREFADECL,UNINIT1,UNINIT2,UNINIT3, UNINIT4,CONTROLASSIGN,BADSUBSCRIPT,SUBSCRBOUNDS,SUBSCRBOUNDS1,SUBSCRBOUNDS2,ALIGNMENT),WARNINGS=(UNINIT1,UNINIT2,UNINIT3,UNINIT4,BAD SUBSCRIPT,SUBSCRBOUNDS,SUBSCRBOUNDS1,SUBSCRBOUNDS2),ERRORS=(OTHERMEMBER))/EXTERN=RELAXED_REFDEF/SHARE_GLOBALS"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sho logical decc$*&lt;/P&gt;&lt;P&gt;(LNM$PROCESS_TABLE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; "DECC$FD_LOCKING" = "TRUE"&lt;/P&gt;&lt;P&gt;(LNM$JOB_8C1FD6C0)&lt;/P&gt;&lt;P&gt;(LNM$GROUP_000100)&lt;/P&gt;&lt;P&gt;(LNM$SYSTEM_TABLE)&lt;/P&gt;&lt;P&gt;&amp;nbsp; "DECC$CRTLMAP" = "SYS$SHARE:DECC$SHR" &amp;nbsp; "DECC$FD_LOCKING" = "TRUE" &amp;nbsp; "DECC$SHR_AV" = "DECC$SHR"&lt;/P&gt;&lt;P&gt;(LNM$SYSCLUSTER_TABLE)&lt;/P&gt;&lt;P&gt;(DECW$LOGICAL_NAMES)&lt;/P&gt;&lt;P&gt;(ENVIRONMENT_DEV)&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 18:44:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5422047#M36610</guid>
      <dc:creator>Ryan Rogalla</dc:creator>
      <dc:date>2011-12-19T18:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5422067#M36611</link>
      <description>&lt;P&gt;That CC command implies multiple problems lurk here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First off, there should not be a CC symbol left around for generic CC compilations. &amp;nbsp;Compilations that require that should be implemented within very specific build procedures, preferrably mapped to a different verb, and definitely not overmapped into the generic CC command. &amp;nbsp;&amp;nbsp;(Similarly, setting up other DCL symbols that overmap any of the other DCL command verbs is also generally cosindered poor practice.) &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Secondary, that list of C compiler qualifiers implies the code that's involved is not so much being ported being covered over with a metric ton of spackle and paint and hackery, and it'll probably be an unstable code-base at best. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The /STANDARD=VAXC disables most of the error checks, and many of which will point ot legitimate run-time bugs in the code, and that particular CC command disables most of the rest. &amp;nbsp; Enabling and fixing the compiler-generated errors typically provides a substantial payback in terms of application stability and maintainability.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For generic builds here, delete the CC symbol.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Better, get that generic symbol from the user and system-wide logins and - only where needed - move it over into the application-specific build procedures. &amp;nbsp;Avoid use of "CC" as the compiler symbol (don't overlap DCL verbs, as a general rule), and preferably don't equate the symbol as a global at all, where that's feasible. &amp;nbsp;It's common to see CC 'ccopt' here, and set up the ccopt symbol with what's required for that specific compilation.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 19:05:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5422067#M36611</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-12-19T19:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5425091#M36612</link>
      <description>&lt;P&gt;Thanks for your help! It was greatly appreciated.&amp;nbsp; And yes I know we have covered up some problems in the past.&amp;nbsp; I will bring some of this to the discussion with our development team.&amp;nbsp; I have been maintaining our VMS code base for a while, but I am not yet a seasoned vet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;one more question.&amp;nbsp; How do you set the cc symbol back to it's DCL default?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again for your insight.&lt;/P&gt;&lt;P&gt;Ryan&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2011 22:16:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5425091#M36612</guid>
      <dc:creator>Ryan Rogalla</dc:creator>
      <dc:date>2011-12-21T22:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: The simple C math example for WSIT</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5425097#M36613</link>
      <description>&lt;P&gt;How?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clean the CC and related cruft out of whatever command procedure is setting up the cruft, log out, and log in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hack: remember to issue DELETE /SYMBOL /GLOBAL CC each time you log in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bigger hack: add&amp;nbsp;DELETE /SYMBOL /GLOBAL CC to the end of your login.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And if that's really the solution the development team has proposed, they'd better have a gold-plated reason for that solution, or I'd suggest acquiring an adult chaperone for the team. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2011 22:46:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/the-simple-c-math-example-for-wsit/m-p/5425097#M36613</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2011-12-21T22:46:02Z</dc:date>
    </item>
  </channel>
</rss>

