<?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 Mixing ANSI C and aCC compilers in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011797#M93632</link>
    <description>If anyone has linked a shared library with the C program using ANSI C compiler on HP-UX and getting following types of errors while running the executable created&lt;BR /&gt;&lt;BR /&gt;aCC runtime: Error 215 from shl_findsym(/usr01/home/libxxxxx.sl.21,_shlInit)&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __tcerr (data)  from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __tcout (data)  from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __stl_tree_mutex (data)  from /usr01/home/xxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: init__14HPMutexWrapperFv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: lock__14HPMutexWrapperSFPv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: unlock__14HPMutexWrapperSFPv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __dt__14HPMutexWrapperFv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __dt__13Iostream_initFv (code) from /usr01/home/xxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ct__13Iostream_initFv_1 (code) from /usr01/home/xxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: ref__20t_ostream_withassignFv (code) from /usr01/home/xxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFPCc (code) from /usr01/home/xxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: endl__FR7ostream (code) from /usr01/home/xxxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFi (code) from /usr01/home/xxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFUi (code) from /usr01/home/xxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: ls_complicated__7ostreamFUc (code) from /usr01/home/xxxxxxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFl (code) from /usr01/home/xxxxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved module for symbol: [Vftptr_Q2_7icu_2_124ForwardCharacterIterator]key: (data)  from /usr01/home/xxxxxxxxx.sl.21&lt;BR /&gt;Abort (coredump)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To resolve this type of error, check if shared library you are using is created using aCC compiler. If libraries are created using aCC compilers then there are three ways to solve the problem.&lt;BR /&gt;&lt;BR /&gt;1. Use aCC compiler for the linking.&lt;BR /&gt;2. If you still want to continue with the ANSI C compiler then&lt;BR /&gt;&lt;BR /&gt;a.out must be linked with the HP aC++ runtime libraries in the following order: &lt;BR /&gt;-lstd -lstream -lCsup -lm -lcl -ldld&lt;BR /&gt;&lt;BR /&gt;To better understand read the following link &lt;A href="http://docs.hp.com/en/4311/distributing.htm" target="_blank"&gt;http://docs.hp.com/en/4311/distributing.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;3. Use LD_PRELOAD command to preload the libraries mentioned in option 2 (lstd -lstream -lCsup -lm -lcl –ldld&lt;BR /&gt; &lt;BR /&gt;). But LD_PRELOAD option if set in .profile may affect other programs. So better use it while running the program creating problem.</description>
    <pubDate>Fri, 01 Jun 2007 13:05:40 GMT</pubDate>
    <dc:creator>Mixing ANSI C and aCC c</dc:creator>
    <dc:date>2007-06-01T13:05:40Z</dc:date>
    <item>
      <title>Mixing ANSI C and aCC compilers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011797#M93632</link>
      <description>If anyone has linked a shared library with the C program using ANSI C compiler on HP-UX and getting following types of errors while running the executable created&lt;BR /&gt;&lt;BR /&gt;aCC runtime: Error 215 from shl_findsym(/usr01/home/libxxxxx.sl.21,_shlInit)&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __tcerr (data)  from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __tcout (data)  from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __stl_tree_mutex (data)  from /usr01/home/xxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: init__14HPMutexWrapperFv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: lock__14HPMutexWrapperSFPv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: unlock__14HPMutexWrapperSFPv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __dt__14HPMutexWrapperFv (code) from /usr01/home/xxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __dt__13Iostream_initFv (code) from /usr01/home/xxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ct__13Iostream_initFv_1 (code) from /usr01/home/xxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: ref__20t_ostream_withassignFv (code) from /usr01/home/xxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFPCc (code) from /usr01/home/xxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: endl__FR7ostream (code) from /usr01/home/xxxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFi (code) from /usr01/home/xxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFUi (code) from /usr01/home/xxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: ls_complicated__7ostreamFUc (code) from /usr01/home/xxxxxxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved symbol: __ls__7ostreamFl (code) from /usr01/home/xxxxxxxxxxxx.sl&lt;BR /&gt;/usr/lib/dld.sl: Unresolved module for symbol: [Vftptr_Q2_7icu_2_124ForwardCharacterIterator]key: (data)  from /usr01/home/xxxxxxxxx.sl.21&lt;BR /&gt;Abort (coredump)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;To resolve this type of error, check if shared library you are using is created using aCC compiler. If libraries are created using aCC compilers then there are three ways to solve the problem.&lt;BR /&gt;&lt;BR /&gt;1. Use aCC compiler for the linking.&lt;BR /&gt;2. If you still want to continue with the ANSI C compiler then&lt;BR /&gt;&lt;BR /&gt;a.out must be linked with the HP aC++ runtime libraries in the following order: &lt;BR /&gt;-lstd -lstream -lCsup -lm -lcl -ldld&lt;BR /&gt;&lt;BR /&gt;To better understand read the following link &lt;A href="http://docs.hp.com/en/4311/distributing.htm" target="_blank"&gt;http://docs.hp.com/en/4311/distributing.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;3. Use LD_PRELOAD command to preload the libraries mentioned in option 2 (lstd -lstream -lCsup -lm -lcl –ldld&lt;BR /&gt; &lt;BR /&gt;). But LD_PRELOAD option if set in .profile may affect other programs. So better use it while running the program creating problem.</description>
      <pubDate>Fri, 01 Jun 2007 13:05:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011797#M93632</guid>
      <dc:creator>Mixing ANSI C and aCC c</dc:creator>
      <dc:date>2007-06-01T13:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing ANSI C and aCC compilers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011798#M93633</link>
      <description>Hi  ??&lt;BR /&gt;&lt;BR /&gt;Welcome to the OpenVMS forum, the forum that deals with the most wonderful OS on the world!&lt;BR /&gt;&lt;BR /&gt;Now, in VMS that would be an easy question, but you asked:&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;BR /&gt;If anyone has linked a shared library with the C program using ANSI C compiler &lt;BR /&gt;!!!&lt;BR /&gt;on HP-UX &lt;BR /&gt;!!!&lt;BR /&gt;&amp;lt;&amp;lt;&amp;lt;&lt;BR /&gt;&lt;BR /&gt;and I think the answers you will get in the HPUX forum would be much more specific to your situation!&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Fri, 01 Jun 2007 13:21:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011798#M93633</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2007-06-01T13:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mixing ANSI C and aC++ compilers</title>
      <link>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011799#M93634</link>
      <description>&lt;P&gt;You might want to close this since you provided your own solution and pointed to the official web page. Though you should point to the latest version:&lt;BR /&gt;&lt;A href="http://www.docs.hp.com/en/7762/5991-4874/distributing.htm" target="_blank"&gt;http://www.docs.hp.com/en/7762/5991-4874/distributing.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Sep 2011 02:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/mixing-ansi-c-and-acc-compilers/m-p/4011799#M93634</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-09-26T02:58:05Z</dc:date>
    </item>
  </channel>
</rss>

