<?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: linking errors in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944018#M17779</link>
    <description>I can't tell you how to solve this without seeing the actual project.  I have no idea what you ended up with.  Please send a ZIP file of your project to us at vf-support@compaq.com and we'll straighten you out.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
    <pubDate>Sat, 24 Mar 2001 07:24:12 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2001-03-24T07:24:12Z</dc:date>
    <item>
      <title>linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944015#M17776</link>
      <description>LINK : warning LNK4075: ignoring /EDITANDCONTINUE due to /INCREMENTAL:NO specification&lt;BR /&gt; &lt;BR /&gt;MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _malloc already defined in libcmt.lib(malloc.obj)&lt;BR /&gt; &lt;BR /&gt;MSVCRTD.lib(MSVCRTD.dll) : error LNK2005: _free already defined in libcmt.lib(free.obj)&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;I have set library :multithreaded, run-time:static&lt;BR /&gt; &lt;BR /&gt;I wonder why both MSVCRTD.lib and libcmt.lib are included. Could someone enlight me how to resolve this? &lt;BR /&gt; &lt;BR /&gt;Thank you. &lt;BR /&gt;Jackel</description>
      <pubDate>Sat, 24 Mar 2001 03:13:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944015#M17776</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-03-24T03:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944016#M17777</link>
      <description>I assume you have a mixed Fortran-C project.  Go to Project..Settings..Fortran..Libraries and check the "Use debug C libraries" box.&lt;BR /&gt;&lt;BR /&gt;See also the newsletter article &lt;A href="http://www.compaq.com/fortran/visual/vfn06/index.html#MCLS"&gt;Multiple C Library Syndrome&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 24 Mar 2001 04:18:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944016#M17777</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-03-24T04:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944017#M17778</link>
      <description>Thank you, Steve &lt;BR /&gt;I call a mixed fortran-C dll library  from a Fortran console application. &lt;BR /&gt;Does it mean I also have to set run-time library to DLL for this application ? &lt;BR /&gt;I tried what you said. now have some new problems. &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;"INK : error LNK2001: unresolved external symbol _mainCRTStartup &lt;BR /&gt;fortran.lib(fortran_API.obj) : error LNK2001: unresolved external symbol __imp__printf &lt;BR /&gt;fortran.lib(fortran_API.obj) : error LNK2001: unresolved external symbol __chkesp &lt;BR /&gt;fortran.lib(fortran_API.obj) : error LNK2001: unresolved external symbol __imp__malloc &lt;BR /&gt;fortran.lib(fortran_API.obj) : error LNK2001: unresolved external symbol __imp__free &lt;BR /&gt;fortran.lib(fortran_API.obj) : error LNK2001: unresolved external symbol __fltused &lt;BR /&gt;" &lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Jackel</description>
      <pubDate>Sat, 24 Mar 2001 06:29:20 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944017#M17778</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-03-24T06:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944018#M17779</link>
      <description>I can't tell you how to solve this without seeing the actual project.  I have no idea what you ended up with.  Please send a ZIP file of your project to us at vf-support@compaq.com and we'll straighten you out.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Sat, 24 Mar 2001 07:24:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944018#M17779</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-03-24T07:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944019#M17780</link>
      <description>I am having similar problems; get the follow error messages: &lt;BR /&gt;----------- &lt;BR /&gt;Linking... &lt;BR /&gt;fileinfo.obj : warning LNK4044: unrecognized option "editandcontinue"; ignored &lt;BR /&gt;fileinfo.obj : error LNK2001: unresolved external symbol __chkesp &lt;BR /&gt;jobsum.obj : error LNK2001: unresolved external symbol _FILEINFO@28 &lt;BR /&gt;Debug/pcburn01.exe : fatal error LNK1120: 2 unresolved externals &lt;BR /&gt;Error executing link.exe. &lt;BR /&gt;pcburn01.exe - 3 error(s), 1 warning(s) &lt;BR /&gt;------------ &lt;BR /&gt; &lt;BR /&gt;I have VF 5.0D and VS C++ 6.0.  FILEINFO.OBJ is a simple C source routine that I compiled with VS C++ 6.0 and added OBJ file to VF 5.0D project.  I have tried many variances in Project Settings in both VF and VSC++ to no avail, as recommended on various web pages under &lt;A href="https://community.intel.com/www.compaq.com/fortran" target="_blank"&gt;www.compaq.com/fortran&lt;/A&gt; and Help pages in Developer Studio.  For example, I have tried with and without C debug libraries (get same error messges). &lt;BR /&gt; &lt;BR /&gt;The VF 5.0 project is a quckwin project with perhaps 20 - 30 FORTRAN source files. The VS C++ only compiles fileinfo.c to OBJ file.  Please help. &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt;Shawn</description>
      <pubDate>Thu, 23 Aug 2001 02:25:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944019#M17780</guid>
      <dc:creator>sgibby</dc:creator>
      <dc:date>2001-08-23T02:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944020#M17781</link>
      <description>Shawn,&lt;BR /&gt;&lt;BR /&gt;Your problem is very different - it appears to be a simple mismatch of calling and naming conventions.  Please read the chapter on mixed-language programming for details.  By the way, I strongly recommend against trying to link a VC++ 6 object in the DVF 5.0 environment - this can cause all sorts of problems (though not the ones you're seeing.)  Do the linking in the newer environment.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Thu, 23 Aug 2001 04:45:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944020#M17781</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-08-23T04:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: linking errors</title>
      <link>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944021#M17782</link>
      <description>Thanks for your quick reply and advice.  I had been studying mixed-languages documentation and by the time I got your reply, I practically had it figured out. &lt;BR /&gt; &lt;BR /&gt;To hopefully benefit others, and see if you have problems with my approach, I want to identify the resolution to each issue. &lt;BR /&gt; &lt;BR /&gt;1.  error LNK2001: unresolved external symbol __chkesp &lt;BR /&gt;I had to remove the /GZ library from the Visual Studio C++ compiler options to preclude VF 5.0D giving this error message. &lt;BR /&gt; &lt;BR /&gt;2.  error LNK2001: unresolved external symbol _FILEINFO@28  &lt;BR /&gt;Evidently, VF requires an INTERFACE block to use C routines.   INTERFACE was discussed in mixed-language programming documentation, but I did not realize that it was REQUIRED.  I am porting this code from an IBM RS/6000 with AIX (UNIX), which does not require the INTERFACE block.   Once I added the INTERFACE block, I got more severe errors, where the linker terminated: &lt;BR /&gt; &lt;BR /&gt;fileinfo.obj : warning LNK4044: unrecognized option "editandcontinue"; ignored &lt;BR /&gt;fileinfo.obj : error : Internal error during Pass2 &lt;BR /&gt;Error executing link.exe. &lt;BR /&gt;Tool execution canceled by user. &lt;BR /&gt; &lt;BR /&gt;3.  warning LNK4044: unrecognized option "editandcontinue"; ignored &lt;BR /&gt;It turns out that Visual Studio C++ 6.0, Project Settings, C++ tab. Debug info: set to "Program Database for Edit and Continue" was causing the warning message and the "Internal error during Pass2".  I set Debug info to NONE and re-compiled my C source.  Back in VF 5.0D my project compiled and linked wiith no errors or warnings. &lt;BR /&gt; &lt;BR /&gt;4.  Although I now had my executable built, I took your advice and linked the project using the newer environment.  So I added all my FORTRAN obj files to my Visual Studio C++ 6.0 project that contains only 1 C source file.  I simply had to specify Additional Library path: c:program filesDevStudioDFlib  under Project, Settings, Link tab to tell the C linker where the FORTRAN libraries where.  By the way, I was able to add the /GZ library option back and the project linked fine under the VS C++ 6.0. &lt;BR /&gt; &lt;BR /&gt;I hope this helps someone else.  FYI, it has been very easy porting my IBM RS/6000 code to PC Visual Fortran.  The syntax is very similar (very little changes required).  VF automatically reads the source (text) files in UNIX format (it sometimes puts in a ^M DOS end-of-line marker which messes up my RS/6000 compiler).  But, with a few directive statements (e.g. #ifdef) for times when the syntax is different, USE DFPORT or USE DFLIB,  I have been able to easily create  source that compiles on both the RS/6000 and the PC.  And with CONVERT="BIG_ENDIAN" on the OPEN statement for unformatted (binary) files, the PC code can read UNIX binary files. &lt;BR /&gt; &lt;BR /&gt;Furthermore,  I have just got approval for the upgrades to VF 6.5A for programmers in my group. &lt;BR /&gt; &lt;BR /&gt;Thanks, &lt;BR /&gt;Shawn</description>
      <pubDate>Thu, 23 Aug 2001 22:44:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/linking-errors/m-p/944021#M17782</guid>
      <dc:creator>sgibby</dc:creator>
      <dc:date>2001-08-23T22:44:28Z</dc:date>
    </item>
  </channel>
</rss>

