<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — linking to .lib library]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=327</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=327&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in linking to .lib library.]]></description>
		<lastBuildDate>Fri, 07 Mar 2014 00:59:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: linking to .lib library]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1332#p1332</link>
			<description><![CDATA[<p>If you&#039;re saying that your C++ .lib file was created using Microsoft tooling, then it almost certainly will not work directly with Simply Fortran.&nbsp; C++ compilers perform compiler-specific &quot;name mangling&quot; when compiling that is not compatible across compilers on the same platform. </p><p>If, however, your C++ library is actually interfaced using <strong>extern &quot;C&quot;</strong>, you probably have a much better chance of linking against the library.&nbsp; There may still be some issues with both the name mangling and <a href="http://en.wikipedia.org/wiki/X86_calling_conventions">calling conventions</a> used between compilers, but they can be figured out normally with some effort.</p><p>There is a section in Simply Fortran&#039;s documentation titled &quot;Linking Libraries&quot; that you should read.&nbsp; It can be found by clicking &quot;Contents...&quot; in the help menu and navigating to <em>Integrated Development Environment-&gt;Simply Fortran IDE-&gt;Using Simply Fortran-&gt;Linking Libraries</em>.</p><p>It might help if you could provide a few more specifics as to what library you&#039;re attempting to link.&nbsp; The easiest solution would be to rebuild your library using Simply Fortran&#039;s included C++ compiler, which would ensure compatibility.&nbsp; Additionally, are you sure it&#039;s a C++ library and not simply a C library?&nbsp; The difference is important when trying to link against libraries built using another compiler, as I pointed out earlier.</p><p>Let us know a few more details, and we might be able to get you running quickly.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 07 Mar 2014 00:59:32 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1332#p1332</guid>
		</item>
		<item>
			<title><![CDATA[linking to .lib library]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=1331#p1331</link>
			<description><![CDATA[<p>I have C++ .lib files that I want to link to, for example: mylib.lib.&nbsp; Can you show me how to link to it? Thanks</p>]]></description>
			<author><![CDATA[null@example.com (abdelakher.ahmed)]]></author>
			<pubDate>Thu, 06 Mar 2014 22:55:41 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=1331#p1331</guid>
		</item>
	</channel>
</rss>
