<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — linking to .lib library]]></title>
	<link rel="self" href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=327&amp;type=atom" />
	<updated>2014-03-07T00:59:32Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.approximatrix.com/viewtopic.php?id=327</id>
		<entry>
			<title type="html"><![CDATA[Re: linking to .lib library]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1332#p1332" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2014-03-07T00:59:32Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1332#p1332</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[linking to .lib library]]></title>
			<link rel="alternate" href="https://forums.approximatrix.com/viewtopic.php?pid=1331#p1331" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[abdelakher.ahmed]]></name>
				<uri>https://forums.approximatrix.com/profile.php?id=3526</uri>
			</author>
			<updated>2014-03-06T22:55:41Z</updated>
			<id>https://forums.approximatrix.com/viewtopic.php?pid=1331#p1331</id>
		</entry>
</feed>
