<?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 Linking issue in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/linking-issue/m-p/4008757#M96249</link>
    <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;While doing compilation using makefile I was getting the following error:&lt;BR /&gt;ld: Unsatisfied symbol "initialize(int)" in file srv.o&lt;BR /&gt;I had also linked the library in which initialize function is there but still I am getting the above error. &lt;BR /&gt;I tried using -Wl,-yinitialize option to find what is referencing it but got the following error:&lt;BR /&gt;g++: -initialize: linker input file unused because linking not done&lt;BR /&gt;I think linking is not done properly.&lt;BR /&gt;&lt;BR /&gt;Kindly help me out.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mitalee</description>
    <pubDate>Tue, 29 May 2007 04:09:46 GMT</pubDate>
    <dc:creator>mitalee</dc:creator>
    <dc:date>2007-05-29T04:09:46Z</dc:date>
    <item>
      <title>Linking issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linking-issue/m-p/4008757#M96249</link>
      <description>Hello All,&lt;BR /&gt;&lt;BR /&gt;While doing compilation using makefile I was getting the following error:&lt;BR /&gt;ld: Unsatisfied symbol "initialize(int)" in file srv.o&lt;BR /&gt;I had also linked the library in which initialize function is there but still I am getting the above error. &lt;BR /&gt;I tried using -Wl,-yinitialize option to find what is referencing it but got the following error:&lt;BR /&gt;g++: -initialize: linker input file unused because linking not done&lt;BR /&gt;I think linking is not done properly.&lt;BR /&gt;&lt;BR /&gt;Kindly help me out.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Mitalee</description>
      <pubDate>Tue, 29 May 2007 04:09:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linking-issue/m-p/4008757#M96249</guid>
      <dc:creator>mitalee</dc:creator>
      <dc:date>2007-05-29T04:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linking issue</title>
      <link>https://community.hpe.com/t5/operating-system-linux/linking-issue/m-p/4008758#M96250</link>
      <description>If you look closely at the linker message you see the function name with its prototype, that means it is mangled.  Your -Wl,-y option will fail because that symbol isn't mangled.  But it seems like g++ isn't passing that directly to ld.&lt;BR /&gt;&lt;BR /&gt;You can bypass g++ by doing:&lt;BR /&gt;$ export LDOPTS="-Wl,-yinitialize"&lt;BR /&gt;&lt;BR /&gt;If you were using aCC, you could use "-Wf,-o" to see both the mangled and demangled name of your unsat.  With your foreign devil driver, you'll have to use "nm -px srv.o | fgrep initialize" to find the mangled name.&lt;BR /&gt;&lt;BR /&gt;If srv.o, is a C source, you need to use:&lt;BR /&gt;extern "C" return-type initialize(int);&lt;BR /&gt;&lt;BR /&gt;Then the name won't be mangled.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;I had also linked the library in which initialize function&lt;BR /&gt;&lt;BR /&gt;What does this show?&lt;BR /&gt;$ nm -pxA your-lib | fgrep initialize</description>
      <pubDate>Wed, 30 May 2007 01:29:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/linking-issue/m-p/4008758#M96250</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2007-05-30T01:29:36Z</dc:date>
    </item>
  </channel>
</rss>

