<?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 Compilation error in cpp file on HPUX platform in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746052#M101433</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to compile c++ file on HPUX11.11 platform. Compiler version is A.03.55.&lt;BR /&gt;&lt;BR /&gt;I am getting error as shown below. But the same code worked for other platforms like solaris,linux.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what could be the reason for this error?&lt;BR /&gt;&lt;BR /&gt;"Warning 134: "/opt/aCC/include/limits", line 112 # Expected 2 arguments for macro&lt;BR /&gt;'max'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 20: "/opt/aCC/include/limits", line 112 # '&lt;TYPE name=""&gt;' expected before ')'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 19: "/opt/aCC/include/limits", line 112 # Unexpected '&amp;gt;'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 24: "/opt/aCC/include/limits", line 112 # ')' expected instead of '?'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 445: "/opt/aCC/include/limits", line 112 # Cannot recover from earlier errors.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }"&lt;BR /&gt;&lt;BR /&gt;Advance Thanks&lt;BR /&gt;&lt;/TYPE&gt;</description>
    <pubDate>Tue, 07 Mar 2006 08:17:48 GMT</pubDate>
    <dc:creator>sarram</dc:creator>
    <dc:date>2006-03-07T08:17:48Z</dc:date>
    <item>
      <title>Compilation error in cpp file on HPUX platform</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746052#M101433</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I am trying to compile c++ file on HPUX11.11 platform. Compiler version is A.03.55.&lt;BR /&gt;&lt;BR /&gt;I am getting error as shown below. But the same code worked for other platforms like solaris,linux.&lt;BR /&gt;&lt;BR /&gt;Can anyone tell me what could be the reason for this error?&lt;BR /&gt;&lt;BR /&gt;"Warning 134: "/opt/aCC/include/limits", line 112 # Expected 2 arguments for macro&lt;BR /&gt;'max'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 20: "/opt/aCC/include/limits", line 112 # '&lt;TYPE name=""&gt;' expected before ')'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 19: "/opt/aCC/include/limits", line 112 # Unexpected '&amp;gt;'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 24: "/opt/aCC/include/limits", line 112 # ')' expected instead of '?'.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }&lt;BR /&gt;^^^&lt;BR /&gt;Error 445: "/opt/aCC/include/limits", line 112 # Cannot recover from earlier errors.&lt;BR /&gt;static inline T max () RWSTD_INLINE_NO_THROW { return RWSTD_STATIC_CAST(T,0); }"&lt;BR /&gt;&lt;BR /&gt;Advance Thanks&lt;BR /&gt;&lt;/TYPE&gt;</description>
      <pubDate>Tue, 07 Mar 2006 08:17:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746052#M101433</guid>
      <dc:creator>sarram</dc:creator>
      <dc:date>2006-03-07T08:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error in cpp file on HPUX platform</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746053#M101434</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;There is obviously a difference of order&lt;BR /&gt;&lt;BR /&gt;Macros max has been defined earlier&lt;BR /&gt;in you source.You must try to include the&lt;BR /&gt;system file first before compiler specific and all other includes.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;               Steve Steel</description>
      <pubDate>Tue, 07 Mar 2006 08:46:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746053#M101434</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2006-03-07T08:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error in cpp file on HPUX platform</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746054#M101435</link>
      <description>Thanks Steve. But why the same code is working for Solaris and Linux.</description>
      <pubDate>Tue, 07 Mar 2006 08:59:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746054#M101435</guid>
      <dc:creator>sarram</dc:creator>
      <dc:date>2006-03-07T08:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: Compilation error in cpp file on HPUX platform</title>
      <link>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746055#M101436</link>
      <description>Because some of the standard header files are different. Almost certainly there is a macro "max" that is interfering. An "#undef max" will probably fix you. Note that Solaris and Linux are not using aCC so you are comparing apples and oranges.</description>
      <pubDate>Tue, 07 Mar 2006 10:08:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/compilation-error-in-cpp-file-on-hpux-platform/m-p/3746055#M101436</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2006-03-07T10:08:22Z</dc:date>
    </item>
  </channel>
</rss>

