<?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 doesn't like OCCI_STD_NAMESPACE:: in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/acc-doesn-t-like-occi-std-namespace/m-p/2738539#M101550</link>
    <description>As you found namespace std is not available unless you use -AA.  You may be able to define OCCI_STD_NAMESPACE to empty?</description>
    <pubDate>Thu, 09 Mar 2006 05:53:42 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2006-03-09T05:53:42Z</dc:date>
    <item>
      <title>aCC doesn't like OCCI_STD_NAMESPACE::</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-doesn-t-like-occi-std-namespace/m-p/2738538#M101549</link>
      <description>I'm having trouble building an Oracle OCCI app that also uses Iona Orbix on HP-UX 11i This app works fine on Tru64 Compaq UNIX.  I'm using aCC V3.33, Oracle 9iRAC, and Iona Orbix E2A Std Edition.  The problem is that the compile of a sample Oracle OCCI program&lt;BR /&gt;&lt;BR /&gt;/opt/aCC/bin/aCC -c -v -AP +DAportable -mt -I$ORACLE_BASE/rdbms/demo&lt;BR /&gt;-I$ORACLE_BASE/rdbms/public occidml.cpp&lt;BR /&gt;&lt;BR /&gt;where occidml.cpp is:&lt;BR /&gt;&lt;BR /&gt;#include &lt;LIMITS&gt;&lt;BR /&gt;#include &lt;VECTOR&gt;&lt;BR /&gt;#include &lt;IOSTREAM.H&gt;&lt;BR /&gt;#include &lt;OCCI.H&gt;&lt;BR /&gt;using namespace oracle::occi;&lt;BR /&gt;using namespace std;&lt;BR /&gt;&lt;BR /&gt;gets errors like this:&lt;BR /&gt;&lt;BR /&gt;Error 19: "/ora1/oracle/OraHome1/rdbms/demo/occiCommon.h", line 586 # Unexpected&lt;BR /&gt; 'std'.&lt;BR /&gt;      void getVector( const AnyData &amp;amp;any, OCCI_STD_NAMESPACE::vector&lt;VOID&gt; &amp;amp;ve&lt;BR /&gt;ct,         Type typ ) ;&lt;BR /&gt;                                          ^^^^^^^^^^^^^^^^^^&lt;BR /&gt;&lt;BR /&gt;where compiler complains about std::vector and such. This should be perfectly legal if #include &lt;VECTOR&gt; has already happened, and I made sure it did.&lt;BR /&gt;&lt;BR /&gt;However, with -AA the problem goes away.  I can't figure out why this matters.  My workaround at present is to take out all occurrences of OCCI_STD_NAMESPACE:: in rdbms/demo/occi*.h, when I do this it compiles and links and runs fine.  However, I have to link against -lstd_v2 -lCsup_v2 (apparently Oracle built its libraries with -AA.  &lt;BR /&gt;&lt;BR /&gt;This whole thing is a pain because Orbix was NOT built with -AA I can't get Orbix to link successfully with -AA (another problem).&lt;BR /&gt;&lt;BR /&gt;My best attempt was:&lt;BR /&gt;&lt;BR /&gt;shlib_dir=$IT_PRODUCT_DIR/orbix_art/2.0/cxx/lib&lt;BR /&gt;inc_dir=$IT_PRODUCT_DIR/orbix_art/2.0/cxx/include&lt;BR /&gt;aCC -v -AA -DIT_STD +DAportable -mt +p -I$inc_dir -o orbix_test orbix_test.cpp -L$shlib_dir -L$IT_PRODUCT_DIR/shlib -L$IT_PRODUCT_DIR/shlib/default -Wl,+n -Wl,+k -Wl,-E -Wl,-Bimmediate -Wl,-Bverbose -Wl,-Bsymbolic -Wl,+s -Wl,+vshlibunsats -lit_art&lt;BR /&gt;&lt;BR /&gt;where orbix_test.cpp was:&lt;BR /&gt;&lt;BR /&gt;#include "rtods.hh"&lt;BR /&gt;&lt;BR /&gt;int main( int argc, char * argv[])&lt;BR /&gt;{&lt;BR /&gt;return 0;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;which includes the IDL-generated client stub include file and nothing else.  The above example compiles and links fine when -AA -DIT_STD are removed from compile/link command.&lt;/VECTOR&gt;&lt;/VOID&gt;&lt;/OCCI.H&gt;&lt;/IOSTREAM.H&gt;&lt;/VECTOR&gt;&lt;/LIMITS&gt;</description>
      <pubDate>Wed, 05 Jun 2002 17:15:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-doesn-t-like-occi-std-namespace/m-p/2738538#M101549</guid>
      <dc:creator>Ben England</dc:creator>
      <dc:date>2002-06-05T17:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: aCC doesn't like OCCI_STD_NAMESPACE::</title>
      <link>https://community.hpe.com/t5/operating-system-linux/acc-doesn-t-like-occi-std-namespace/m-p/2738539#M101550</link>
      <description>As you found namespace std is not available unless you use -AA.  You may be able to define OCCI_STD_NAMESPACE to empty?</description>
      <pubDate>Thu, 09 Mar 2006 05:53:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/acc-doesn-t-like-occi-std-namespace/m-p/2738539#M101550</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2006-03-09T05:53:42Z</dc:date>
    </item>
  </channel>
</rss>

