<?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 C++]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=176</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=176&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in linking to C++.]]></description>
		<lastBuildDate>Sat, 06 Apr 2013 18:10:56 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: linking to C++]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=709#p709</link>
			<description><![CDATA[<p>I would suggest using a Shared Library project (DLL) simply because the static libraries generated by Simply Fortran will not be compatible with MS Visual C++.&nbsp; Simply Fortran should link in all necessary Fortran runtime code during compilation, so you shouldn&#039;t end up with issues surrounding missing DLLs on the Fortran side.&nbsp; </p><p>Fortran&#039;s <strong>ISO_C_BINDING</strong> module is something you&#039;ll want to look closely at.&nbsp; It should allow your Fortran functions to be created in a form that is callable by any other language as they&#039;ll conform to the C declaration standard.&nbsp; I haven&#039;t personally tried linking with MSVC++ using this technique, so I&#039;ll give it a try myself, probably tomorrow, to see if it all works.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Sat, 06 Apr 2013 18:10:56 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=709#p709</guid>
		</item>
		<item>
			<title><![CDATA[linking to C++]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=705#p705</link>
			<description><![CDATA[<p>I want to link some Fortran routines to a Windows C++ program.&nbsp; I am using MS C++ visual studio 2010.&nbsp; How easy is this?&nbsp; Any tips would be appreciated - articles, what fortran libraries have to be included, which kind of project to use (static library (I would prefer static linking), simple dll?).&nbsp; I used to do fortran, but have not used it much for many years.&nbsp; The routines are working fine in a fortran program.&nbsp; The section on interoperability in the docs may have useful information but does not answer my questions.</p>]]></description>
			<author><![CDATA[null@example.com (dowty)]]></author>
			<pubDate>Sat, 06 Apr 2013 01:03:13 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=705#p705</guid>
		</item>
	</channel>
</rss>
