<?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 and libraries in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016770#M718787</link>
    <description>If both an archive and shared version of a particular library reside in the same directory, the linker links in the shared version by default. You can override this behavior with the -a linker option. &lt;BR /&gt;NOTE: You can use the +A option if you are using only archive libraries to create a completely archived executable. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The -a linker option tells the linker which type of library to use. The -a option is positional and applies to all subsequent libraries specified with the -l option until the end of the command line or until the next -a option is encountered. Pass the -a option to the linker with the -Wx,args option. &lt;BR /&gt;&lt;BR /&gt;The following example directs the linker to use the archive version of the library libshape, followed by standard shared libraries if they exist; otherwise select archive versions. &lt;BR /&gt;&lt;BR /&gt;aCC box.o sphere.o -Wl,-a,archive -lshape -Wl,-a,default&lt;BR /&gt;</description>
    <pubDate>Mon, 07 Jul 2003 13:43:37 GMT</pubDate>
    <dc:creator>curt larson_1</dc:creator>
    <dc:date>2003-07-07T13:43:37Z</dc:date>
    <item>
      <title>aCC compiler and libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016768#M718785</link>
      <description>We are using message Queue libraries(libmqm) for linking to an executable, which is compiled by aCC compiler. Usually We will link the messageQ library as follows:&lt;BR /&gt;&lt;BR /&gt;aCC -o main main.cc -L/tools/rp56/lib -lmqm  .&lt;BR /&gt;&lt;BR /&gt;Under /tools/rp56/lib, We have one shared library and one archive libary of the same name. ie; libmqm.sl and libmqm.a . &lt;BR /&gt;&lt;BR /&gt;1) How can I make sure that while linking with -l option it will pick up archive ? &lt;BR /&gt;2) Is there any default setting like, it will always pick up shared one first?&lt;BR /&gt;3) If there is a default setting, What is the option for picking up the other one?&lt;BR /&gt;&lt;BR /&gt;    Can anybody throw some light on this ?&lt;BR /&gt; &lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2003 13:17:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016768#M718785</guid>
      <dc:creator>Pratheesh</dc:creator>
      <dc:date>2003-07-07T13:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: aCC compiler and libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016769#M718786</link>
      <description>You can use the +A argument to aCC to instruct ACC that all -l references are archive libraries but if you want to use both archive and shared librararies then you need to pass the -a archive_shared option to the linker phase of aCC. -a archive_shared tell ld to look first for archived libraries but if not found use the shared version.&lt;BR /&gt;&lt;BR /&gt;Man aCC, ld for details.&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2003 13:38:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016769#M718786</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-07-07T13:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: aCC compiler and libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016770#M718787</link>
      <description>If both an archive and shared version of a particular library reside in the same directory, the linker links in the shared version by default. You can override this behavior with the -a linker option. &lt;BR /&gt;NOTE: You can use the +A option if you are using only archive libraries to create a completely archived executable. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The -a linker option tells the linker which type of library to use. The -a option is positional and applies to all subsequent libraries specified with the -l option until the end of the command line or until the next -a option is encountered. Pass the -a option to the linker with the -Wx,args option. &lt;BR /&gt;&lt;BR /&gt;The following example directs the linker to use the archive version of the library libshape, followed by standard shared libraries if they exist; otherwise select archive versions. &lt;BR /&gt;&lt;BR /&gt;aCC box.o sphere.o -Wl,-a,archive -lshape -Wl,-a,default&lt;BR /&gt;</description>
      <pubDate>Mon, 07 Jul 2003 13:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016770#M718787</guid>
      <dc:creator>curt larson_1</dc:creator>
      <dc:date>2003-07-07T13:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: aCC compiler and libraries</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016771#M718788</link>
      <description>You can also force archive for one library by using&lt;BR /&gt;-l:libmqrn.a&lt;BR /&gt;That can be less trouble-prone when most libraries should be using shared libraries.</description>
      <pubDate>Mon, 07 Jul 2003 14:07:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/acc-compiler-and-libraries/m-p/3016771#M718788</guid>
      <dc:creator>Mike Stroyan</dc:creator>
      <dc:date>2003-07-07T14:07:57Z</dc:date>
    </item>
  </channel>
</rss>

