<?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: Error while using C linker in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197734#M714134</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Seems like it is a 64 bit application . try removing the main&lt;BR /&gt;&lt;BR /&gt;I seem to recall _main() should not be called for 64bit apps.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel</description>
    <pubDate>Fri, 20 Feb 2004 09:34:43 GMT</pubDate>
    <dc:creator>Steve Steel</dc:creator>
    <dc:date>2004-02-20T09:34:43Z</dc:date>
    <item>
      <title>Error while using C linker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197733#M714133</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;I have a library 'A' written in C. This library has dependency on another library 'B' written in C++ and exposes some APIs which 'A' library uses. Now the problem is 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. Is there any linker flag that I should you use? Any workaround? My requirement is basically to use the C linker and not C++.&lt;BR /&gt;&lt;BR /&gt;Any help is appreciated. Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;Sujata.&lt;BR /&gt;&lt;/NO&gt;</description>
      <pubDate>Fri, 20 Feb 2004 08:52:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197733#M714133</guid>
      <dc:creator>Sujata_1</dc:creator>
      <dc:date>2004-02-20T08:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using C linker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197734#M714134</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Seems like it is a 64 bit application . try removing the main&lt;BR /&gt;&lt;BR /&gt;I seem to recall _main() should not be called for 64bit apps.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;          Steve Steel</description>
      <pubDate>Fri, 20 Feb 2004 09:34:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197734#M714134</guid>
      <dc:creator>Steve Steel</dc:creator>
      <dc:date>2004-02-20T09:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using C linker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197735#M714135</link>
      <description>Hi Steve,&lt;BR /&gt;&lt;BR /&gt;Thanks for the response.&lt;BR /&gt;I am compiling code for 32-bit as well as 64-bit. Mine is a shared library. I am not calling main from anywhere.&lt;BR /&gt;&lt;BR /&gt;Sujata.</description>
      <pubDate>Fri, 20 Feb 2004 09:45:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197735#M714135</guid>
      <dc:creator>Sujata_1</dc:creator>
      <dc:date>2004-02-20T09:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error while using C linker</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197736#M714136</link>
      <description>there is no separate linker for c++ on hpux.&lt;BR /&gt;&lt;BR /&gt;if you want to build shared libraries from c++ code, you have to use the -b option of aCC. do not link it directly with ld.&lt;BR /&gt;&lt;BR /&gt;as for the C compiler, you should make sure you use the ansi C compiler and not the bundled  C compiler (which is there only to rebuild kernels).&lt;BR /&gt;&lt;BR /&gt;the recent versions of ansi c compiler  /opt/ansic/bin/cc also support the -b option. i dont think the bundled compiler does that.&lt;BR /&gt;&lt;BR /&gt;if this does not work, please run the link again with LDOPTS set to -v (or -Wl,-v in the compiler command line) and post the output., along with the what string of the linker (output of "what /usr/ccs/bin/ld").</description>
      <pubDate>Mon, 23 Feb 2004 00:51:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/error-while-using-c-linker/m-p/3197736#M714136</guid>
      <dc:creator>ranganath ramachandra</dc:creator>
      <dc:date>2004-02-23T00:51:29Z</dc:date>
    </item>
  </channel>
</rss>

