<?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 gcc error while linking in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755694#M11181</link>
    <description>thank you, very much TimP ..i supplied required ifort libs and it worked. thanks</description>
    <pubDate>Wed, 01 Jun 2011 07:56:54 GMT</pubDate>
    <dc:creator>sandeep_01</dc:creator>
    <dc:date>2011-06-01T07:56:54Z</dc:date>
    <item>
      <title>gcc error while linking</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755691#M11178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using g++ to build my c++ code. I am using one library "libdbio.a" which is compiled in fortron complier ( intel, i think so). I have installed intel fortron composer XE2011 version on my suse10.4 64bit machine.&lt;/P&gt;&lt;P&gt;I am getting following linking error while linking the above mentioned library, please could you tell me what could be the problem.&lt;/P&gt;&lt;P&gt;g++ -O2 -Wall -I/Bala_backup/bala/Documents/XDB_Files_Linux -I/Bala_backup/bala/Documents/XDB_Files_Linux/OP2Writer -fPIC -o fno2xdb.x Common/FNO2XDBApp.o ./libdbio.a -L.   -ldl /home/sandeep/Bala_backup/bala/Documents/XDB_Files_Linux/libfno2xdb.a ./libdbio.a&lt;BR /&gt;./libdbio.a(bioxxx.o): In function `bioxxx_routine':&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/util/dbio/bioxxx.c:(.text+0xf32): warning: the use of `tmpnam' is dangerous, better use `mkstemp'&lt;BR /&gt;./libdbio.a(dbopen.o): In function `dbopen_':&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dbopen.f:(.text+0x7c7): undefined reference to `for_inquire'&lt;BR /&gt;./libdbio.a(dbvald.o): In function `dbvald_':&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/util/dbio/dbvald.c:(.text+0x50): undefined reference to `_intel_fast_memcpy'&lt;BR /&gt;./libdbio.a(dioerr.o): In function `dioerr_':&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dioerr.f:(.text+0x1f8): undefined reference to `for_write_seq_fmt'&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dioerr.f:(.text+0x233): undefined reference to `for_write_seq_fmt_xmit'&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dioerr.f:(.text+0x2ab): undefined reference to `for_write_int_fmt'&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dioerr.f:(.text+0x320): undefined reference to `for_write_seq_fmt'&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dioerr.f:(.text+0x35b): undefined reference to `for_write_seq_fmt_xmit'&lt;BR /&gt;/scratch/qasimtst/pb6/nastran1/obj/em64tL/util/dbio/dioerr.f:(.text+0x3d3): undefined reference to `for_write_int_fmt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2011 13:41:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755691#M11178</guid>
      <dc:creator>sandeep_01</dc:creator>
      <dc:date>2011-05-27T13:41:38Z</dc:date>
    </item>
    <item>
      <title>gcc error while linking</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755692#M11179</link>
      <description>The for_write_* libraries are Intel runtime libraries, so it seems that g++ can not locate these runtime libraries. I think the other experts on these forums will be able to help you more with those libraries. But I will suggest that you use the Intel compiler to compile your C++ code as well. You should use the -nofor_main switch which will enable you to have the main program in the C++ code. Something like this MAY work:&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;ifort -nofor_main -warn all -I/Bala_backup/bala/Documents/XDB_Files_Linux -I/Bala_backup/bala/Documents/XDB_Files_Linux/OP2Writer -o fno2xdb.x Common/FNO2XDBApp.o&lt;/DIV&gt;&lt;DIV&gt;Also, experiment with the -fPIC flag.&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Best!&lt;/DIV&gt;&lt;DIV&gt;-Udit&lt;/DIV&gt;</description>
      <pubDate>Fri, 27 May 2011 14:29:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755692#M11179</guid>
      <dc:creator>Udit_P_Intel</dc:creator>
      <dc:date>2011-05-27T14:29:54Z</dc:date>
    </item>
    <item>
      <title>gcc error while linking</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755693#M11180</link>
      <description>You will need to add all the libraries from the ifort installation which are referenced by your Fortran code. Often, it's simpler to use ifort in place of g++ to manage the link, adding -lstdc++ in order to satisfy g++.</description>
      <pubDate>Fri, 27 May 2011 20:56:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755693#M11180</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2011-05-27T20:56:07Z</dc:date>
    </item>
    <item>
      <title>gcc error while linking</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755694#M11181</link>
      <description>thank you, very much TimP ..i supplied required ifort libs and it worked. thanks</description>
      <pubDate>Wed, 01 Jun 2011 07:56:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755694#M11181</guid>
      <dc:creator>sandeep_01</dc:creator>
      <dc:date>2011-06-01T07:56:54Z</dc:date>
    </item>
    <item>
      <title>gcc error while linking</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755695#M11182</link>
      <description>&lt;P&gt;thank you Udit, i tried but withought success, may be because i am new in the area and dint not explore all possibilities ..&lt;/P&gt;&lt;P&gt;Thank you very much for the promt reply.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2011 07:59:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/gcc-error-while-linking/m-p/755695#M11182</guid>
      <dc:creator>sandeep_01</dc:creator>
      <dc:date>2011-06-01T07:59:07Z</dc:date>
    </item>
  </channel>
</rss>

