<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Error Log &#187; ifort</title>
	<atom:link href="http://www.errorlog.dk/tag/ifort/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.errorlog.dk</link>
	<description>Problems I&#039;ve found solutions for.</description>
	<lastBuildDate>Thu, 20 Nov 2008 11:43:11 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Compiling a program with icc so the path of icc dynamic libraries is known</title>
		<link>http://www.errorlog.dk/2008/09/11/compiling-a-program-with-icc-so-the-path-of-icc-dynamic-libraries-is-known/</link>
		<comments>http://www.errorlog.dk/2008/09/11/compiling-a-program-with-icc-so-the-path-of-icc-dynamic-libraries-is-known/#comments</comments>
		<pubDate>Thu, 11 Sep 2008 05:30:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Errors]]></category>
		<category><![CDATA[icc]]></category>
		<category><![CDATA[ifort]]></category>

		<guid isPermaLink="false">http://www.errorlog.dk/?p=58</guid>
		<description><![CDATA[Problem
I had the problem that programs compiled with icc and ifort needed a library from the compiler&#8217;s directory to run, and I had gotten tired of needing to set LD_LOAD_PATH

Solution
Adding -Wl,-R/path/to/lib to the linker line solved the problem.
With an autotools based distribution, it was a matter of going:
/configure LDFLAGS=-Wl,-R/opt/intel/cce/10.1.015/bin CC=/opt/intel/cce/10.1.015/bin/icc CXX=/opt/intel/cce/10.1.015/bin/icpc F77=/opt/intel/fce/10.1.015/bin/ifort FC=/opt/intel/fce/10.1.015/bin/ifort --prefix= ...
]]></description>
			<content:encoded><![CDATA[<h2>Problem</h2>
<p>I had the problem that programs compiled with icc and ifort needed a library from the compiler&#8217;s directory to run, and I had gotten tired of needing to set LD_LOAD_PATH</p>
<h4><span id="more-58"></span></h4>
<h2>Solution</h2>
<p>Adding <code>-Wl,-R/path/to/lib</code> to the linker line solved the problem.</p>
<p>With an autotools based distribution, it was a matter of going:<br />
<code>/configure LDFLAGS=-Wl,-R/opt/intel/cce/10.1.015/bin CC=/opt/intel/cce/10.1.015/bin/icc CXX=/opt/intel/cce/10.1.015/bin/icpc F77=/opt/intel/fce/10.1.015/bin/ifort FC=/opt/intel/fce/10.1.015/bin/ifort --prefix= ...</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.errorlog.dk/2008/09/11/compiling-a-program-with-icc-so-the-path-of-icc-dynamic-libraries-is-known/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
