<?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: aCC Compiler error in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965195#M757902</link>
    <description>&amp;gt;and it is working fine ... thanks once again for your help ...&lt;BR /&gt;&lt;BR /&gt;You have not awarded any points yet.  Please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
    <pubDate>Sun, 25 Mar 2007 22:02:02 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2007-03-25T22:02:02Z</dc:date>
    <item>
      <title>aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965184#M757891</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;I am porting tripwire product on HP-UX and when use aCC Compiler I am getting following error while compilation  but compilation is successfull when i use g++ compiler(3.4.3 version)&lt;BR /&gt;&lt;BR /&gt;error is:&lt;BR /&gt;aCC -DHAVE_CONFIG_H              -I. -I. -I../.. -I..    -O  -c -o file_unix.o file_unix.cpp&lt;BR /&gt;"../core/errorutil.h", line 140: warning #2340-D: value copied to temporary,&lt;BR /&gt;          reference to temporary used&lt;BR /&gt;  :     eError( _T("") ),&lt;BR /&gt;                ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 170: error #2334: class "eFileOpen" has no suitable copy&lt;BR /&gt;          constructor&lt;BR /&gt;                throw( eFileOpen( sFileName, iFSServices::GetInstance()-&amp;gt;GetErrS                                                                             tring() ) ) ;&lt;BR /&gt;                     ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 179: error #2334: class "eFileOpen" has no suitable copy&lt;BR /&gt;          constructor&lt;BR /&gt;                        throw( eFileOpen( sFileName, iFSServices::GetInstance()-                                                                             &amp;gt;GetErrString() ) );&lt;BR /&gt;                             ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 236: error #2334: class "eInternal" has no suitable copy&lt;BR /&gt;          constructor&lt;BR /&gt;                throw( eInternal( _T("file_unix") ) );&lt;BR /&gt;                     ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 257: error #2334: class "eFileSeek" has no suitable copy&lt;BR /&gt;          constructor&lt;BR /&gt;          throw eFileSeek();&lt;BR /&gt;                ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 281: error #2334: class "eFileRead" has no suitable copy&lt;BR /&gt;          constructor&lt;BR /&gt;                throw eFileRead( mpData-&amp;gt;mFileName, iFSServices::GetInstance()-&amp;gt;                                                                             GetErrString() ) ;&lt;BR /&gt;                      ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 284: warning #2940-D: missing return statement at end of&lt;BR /&gt;          non-void function "cFile::Read"&lt;BR /&gt;  }&lt;BR /&gt;  ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 299: error #2334: class "eFileWrite" has no suitable&lt;BR /&gt;          copy constructor&lt;BR /&gt;                throw eFileWrite( mpData-&amp;gt;mFileName, iFSServices::GetInstance()-                                                                             &amp;gt;GetErrString() );&lt;BR /&gt;                      ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 302: warning #2940-D: missing return statement at end of&lt;BR /&gt;          non-void function "cFile::Write"&lt;BR /&gt;  }&lt;BR /&gt;  ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 321: error #2334: class "eFileFlush" has no suitable&lt;BR /&gt;          copy constructor&lt;BR /&gt;                throw eFileFlush( mpData-&amp;gt;mFileName, iFSServices::GetInstance()-                                                                             &amp;gt;GetErrString() );&lt;BR /&gt;                      ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 336: error #2334: class "eFileRewind" has no suitable&lt;BR /&gt;          copy constructor&lt;BR /&gt;                throw( eFileRewind( mpData-&amp;gt;mFileName, iFSServices::GetInstance(                                                                             )-&amp;gt;GetErrString() ) );&lt;BR /&gt;                     ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 369: error #2334: class "eFileTrunc" has no suitable&lt;BR /&gt;          copy constructor&lt;BR /&gt;                throw( eFileTrunc( mpData-&amp;gt;mFileName, iFSServices::GetInstance()                                                                             -&amp;gt;GetErrString() ) );&lt;BR /&gt;                     ^&lt;BR /&gt;&lt;BR /&gt;"file_unix.cpp", line 57: warning #2177-D: function "util_GetErrnoString" was&lt;BR /&gt;          declared but never referenced&lt;BR /&gt;  static TSTRING util_GetErrnoString()&lt;BR /&gt;                 ^&lt;BR /&gt;&lt;BR /&gt;9 errors detected in the compilation of "file_unix.cpp".&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Please help me if any source code modifications has to be done or any compiler options to be provided ...&lt;BR /&gt;&lt;BR /&gt;Suggesions are appreciated...&lt;BR /&gt;&lt;BR /&gt;Thank you in Advance&lt;BR /&gt;&lt;BR /&gt;--Regards&lt;BR /&gt;Santhosh</description>
      <pubDate>Tue, 20 Mar 2007 07:50:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965184#M757891</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-20T07:50:13Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965185#M757892</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;To recommend source code modifications, someone might actually need to see the source code.&lt;BR /&gt;&lt;BR /&gt;The compiler is telling you what lines to look at. Looks like a code review problem to me.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 20 Mar 2007 08:14:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965185#M757892</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2007-03-20T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965186#M757893</link>
      <description>&amp;gt;when use aCC Compiler I am getting following error while compilation&lt;BR /&gt;&lt;BR /&gt;g++ is probably not as strict.  When you throw, the copy constructor must exist and be accessible.  Even if the copy ctor can be optimized out.  Error 2330 occurs if not accessible.&lt;BR /&gt;&lt;BR /&gt;To get error 2334 it requires that you have the wrong type of copy ctor, one without const&amp;amp;:&lt;BR /&gt;eFileOpen(eFileOpen&amp;amp;);&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please help me if any source code modifications&lt;BR /&gt;&lt;BR /&gt;Why would you not have const above?  Did you want to modify the source?  If you need to do that you need to make the field mutable or use a const_cast.</description>
      <pubDate>Tue, 20 Mar 2007 22:49:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965186#M757893</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-20T22:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965187#M757894</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;Thank you for your help...&lt;BR /&gt;&lt;BR /&gt;I am bit confused Dennis ...I am herewith sending file_unix.cpp gile along with this mail...&lt;BR /&gt;&lt;BR /&gt;Please help me in this regard(What needs to be added??? or modified????)&lt;BR /&gt;&lt;BR /&gt;--Regards&lt;BR /&gt;Santhosh</description>
      <pubDate>Wed, 21 Mar 2007 04:06:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965187#M757894</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-21T04:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965188#M757895</link>
      <description>&lt;!--!*#--&gt;&amp;gt;I am herewith sending file_unix.cpp gile along with this mail.&lt;BR /&gt;&lt;BR /&gt;Typically .cpp files are useless, you don't see the headers.  If you compile with -E -.i, you can produce a .i file.  Of course you may not want to post it here if there is valuable IP or copyrighted info in it.  (Ok, this is GNU GPL.)&lt;BR /&gt;&lt;BR /&gt;&amp;gt;Please help me in this regard (What needs to be added??? or modified????)&lt;BR /&gt;&lt;BR /&gt;I need the header that declares the copy ctor for eFileOpen.  As I said, you probably have:&lt;BR /&gt;   eFileOpen(eFileOpen&amp;amp;) and you should have&lt;BR /&gt;   eFileOpen(const eFileOpen&amp;amp;)</description>
      <pubDate>Wed, 21 Mar 2007 04:14:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965188#M757895</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-21T04:14:21Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965189#M757896</link>
      <description>Hi Dennis,&lt;BR /&gt;&lt;BR /&gt;I tried with that -E option and Generated the intemediate file also and got the constructors ...&lt;BR /&gt;&lt;BR /&gt;I will am sending you the three .h files 1.file.h&lt;BR /&gt;&lt;BR /&gt;Look at this line&lt;BR /&gt;&lt;BR /&gt;(TSS_FILE_EXCEPTION(eFileOpen,          eFile );)&lt;BR /&gt;&lt;BR /&gt;2.fileerror.h &lt;BR /&gt;&lt;BR /&gt;Look at this line &lt;BR /&gt;&lt;BR /&gt;#define TSS_FILE_EXCEPTION( except, base ) \&lt;BR /&gt;        TSS_BEGIN_EXCEPTION( except, base ) \&lt;BR /&gt;        except( const TSTRING&amp;amp; filename, const TSTRING&amp;amp; msg, uint32 flags = 0 ) \&lt;BR /&gt;        : base( filename, msg, flags ) {} \&lt;BR /&gt;        TSS_END_EXCEPTION()&lt;BR /&gt;&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;3.fsservices.h&lt;BR /&gt;&lt;BR /&gt;look at this line&lt;BR /&gt;virtual TSTRING   GetErrString() const = 0;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2007 08:23:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965189#M757896</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-21T08:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965190#M757897</link>
      <description>Find fileerror.h file in attached format</description>
      <pubDate>Wed, 21 Mar 2007 08:24:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965190#M757897</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-21T08:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965191#M757898</link>
      <description>Find fssserrvices.h file in attached format</description>
      <pubDate>Wed, 21 Mar 2007 08:25:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965191#M757898</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-21T08:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965192#M757899</link>
      <description>Find find the intermediate file in attached format</description>
      <pubDate>Wed, 21 Mar 2007 08:28:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965192#M757899</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-21T08:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965193#M757900</link>
      <description>&amp;gt;Find fileerror.h file&lt;BR /&gt;&lt;BR /&gt;This shows the problem, a little different than I mentioned:&lt;BR /&gt;  explicit eFileError(const eFileError&amp;amp; rhs)&lt;BR /&gt;   : eError(rhs) { mFilename = rhs.mFilename; }&lt;BR /&gt;&lt;BR /&gt;Using "explicit" here causes the copy ctor to be ignored.  12.3.1(2) says that this constructor can only be used where direct initialization is used.&lt;BR /&gt;8.5(12) says that throw is a copy-initialization, so that copy constructor isn't considered.&lt;BR /&gt;So remove "explicit".&lt;BR /&gt;</description>
      <pubDate>Wed, 21 Mar 2007 23:20:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965193#M757900</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-21T23:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965194#M757901</link>
      <description>HI Dennis,&lt;BR /&gt;&lt;BR /&gt;Thank you for the reply and problem got resolved ...&lt;BR /&gt;&lt;BR /&gt;I removed explicit keyword from the .h file and it is working fine ...&lt;BR /&gt;&lt;BR /&gt;Thanks once again for your help ...&lt;BR /&gt;&lt;BR /&gt;--Regards&lt;BR /&gt;Santhosh</description>
      <pubDate>Sat, 24 Mar 2007 23:26:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965194#M757901</guid>
      <dc:creator>CRAZY SANTHOSH</dc:creator>
      <dc:date>2007-03-24T23:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: aCC Compiler error</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965195#M757902</link>
      <description>&amp;gt;and it is working fine ... thanks once again for your help ...&lt;BR /&gt;&lt;BR /&gt;You have not awarded any points yet.  Please read:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;</description>
      <pubDate>Sun, 25 Mar 2007 22:02:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-error/m-p/3965195#M757902</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-03-25T22:02:02Z</dc:date>
    </item>
  </channel>
</rss>

