<?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 Error while using C linker in Operating System - Tru64 Unix</title>
    <link>https://community.hpe.com/t5/operating-system-tru64-unix/error-while-using-c-linker/m-p/3198792#M3765</link>
    <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;I have a shared library 'A' written in C. This library has dependency on another shared library 'B' written in C++ and exposes some APIs which 'A' library uses. Now the problem is that if I use the C++ linker, thinks work fine. But if I use C linker, then I get the following error, &lt;BR /&gt;ld: Unsatisfied symbol "main" in file &lt;NO file=""&gt;&lt;BR /&gt;1 errors.&lt;BR /&gt;&lt;BR /&gt;I am using HP-11.00 RISC with aCC 3.37 compiler and OSF 5.1 CPQ 6.5 compiler. Is there any linker flag that I should use? Any workaround? My requirement is basically to use the C linker and not C++.&lt;BR /&gt;I don't have main implemented in both the libraries.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Sujata.&lt;/NO&gt;</description>
    <pubDate>Sun, 22 Feb 2004 11:00:46 GMT</pubDate>
    <dc:creator>Sujata_1</dc:creator>
    <dc:date>2004-02-22T11:00:46Z</dc:date>
    <item>
      <title>Error while using C linker</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/error-while-using-c-linker/m-p/3198792#M3765</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;I have a shared library 'A' written in C. This library has dependency on another shared library 'B' written in C++ and exposes some APIs which 'A' library uses. Now the problem is that if I use the C++ linker, thinks work fine. But if I use C linker, then I get the following error, &lt;BR /&gt;ld: Unsatisfied symbol "main" in file &lt;NO file=""&gt;&lt;BR /&gt;1 errors.&lt;BR /&gt;&lt;BR /&gt;I am using HP-11.00 RISC with aCC 3.37 compiler and OSF 5.1 CPQ 6.5 compiler. Is there any linker flag that I should use? Any workaround? My requirement is basically to use the C linker and not C++.&lt;BR /&gt;I don't have main implemented in both the libraries.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Sujata.&lt;/NO&gt;</description>
      <pubDate>Sun, 22 Feb 2004 11:00:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/error-while-using-c-linker/m-p/3198792#M3765</guid>
      <dc:creator>Sujata_1</dc:creator>
      <dc:date>2004-02-22T11:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using C linker</title>
      <link>https://community.hpe.com/t5/operating-system-tru64-unix/error-while-using-c-linker/m-p/3198793#M3766</link>
      <description>Hi,  &lt;BR /&gt;  &lt;BR /&gt;from the error it seems to miss the option when try to create other &lt;BR /&gt;Shared. To create a shared library from one or more object files use the -b option at link time.&lt;BR /&gt;&lt;BR /&gt;For examples:&lt;BR /&gt;aCC -b -o MyShared.sl Func1.o Func2.o&lt;BR /&gt;&lt;BR /&gt;In every case, the C++ compiler must know that f(int,char,float) is to be called by a C compiler using the extern C construct.&lt;BR /&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Cristiano</description>
      <pubDate>Tue, 09 Mar 2004 21:41:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-tru64-unix/error-while-using-c-linker/m-p/3198793#M3766</guid>
      <dc:creator>Cristiano MESSINA</dc:creator>
      <dc:date>2004-03-09T21:41:23Z</dc:date>
    </item>
  </channel>
</rss>

