<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Missing DLL files when moving EXE to new machine; SF 2.41 build 2559]]></title>
		<link>http://forums.approximatrix.com/viewtopic.php?id=692</link>
		<atom:link href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=692&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Missing DLL files when moving EXE to new machine; SF 2.41 build 2559.]]></description>
		<lastBuildDate>Fri, 12 Oct 2018 09:36:05 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Missing DLL files when moving EXE to new machine; SF 2.41 build 2559]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3212#p3212</link>
			<description><![CDATA[<p>Thanks Jeff, I changed that check button back to &quot;All Static&quot; in the Linker project options. and the executable is now portable; no asking for DLLs.</p><p>I also appreciate that the pthreadGC2-32.dll or pthreadGC2-64.dll are no longer needed to be portable. That was one of the things I was unhappy about when I first started using SF/GNU FORTRAN. </p><p>Now if I can just figure out why my new code has memory fault crashes... but that is for later once I can understand where and when it is happening. </p><p>Rod</p><p>Oh, and here is the latest Makefile:</p><p>#<br /># Automagically generated by Approximatrix Simply Fortran 2.41<br />#<br />FC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe&quot;<br />CC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe&quot;<br />AR=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\ar.exe&quot;<br />WRC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\windres.exe&quot;<br />RM=rm -f</p><br /><p>OPTFLAGS= -O3 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all -mtune=broadwell</p><p>SPECIALFLAGS=$(IDIR)</p><p>RCFLAGS=-O coff</p><p>PRJ_FFLAGS= -fopenmp</p><p>PRJ_CFLAGS=</p><p>PRJ_LFLAGS=-Wl,--stack,1500000000 -lgomp</p><p>FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_FFLAGS) -Jmodules </p><p>CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_CFLAGS)</p><p>&quot;build\riod.o&quot;: &quot;.\riod.f90&quot;<br />&nbsp; &nbsp; @echo Compiling .\riod.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;build\riod.o&quot; $(FFLAGS) &quot;.\riod.f90&quot;</p><p>clean: .SYMBOLIC<br />&nbsp; &nbsp; @echo Deleting build\riod.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;build\riod.o&quot;<br />&nbsp; &nbsp; @echo Deleting default icon resource<br />&nbsp; &nbsp; @$(RM) &quot;build\sf_default_resource.res&quot;<br />&nbsp; &nbsp; @echo Deleting riod.exe<br />&nbsp; &nbsp; @$(RM) &quot;riod.exe&quot;</p><p>&quot;riod.exe&quot;:&nbsp; &quot;build\riod.o&quot; &quot;build\Riod-MP-F90.prj.target&quot;<br />&nbsp; &nbsp; @echo Generating riod.exe<br />&nbsp; &nbsp; @$(FC) -o &quot;riod.exe&quot; -static -fopenmp &quot;build\riod.o&quot; $(LDIR) $(PRJ_LFLAGS)</p><p>all: &quot;riod.exe&quot; .SYMBOLIC</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Fri, 12 Oct 2018 09:36:05 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3212#p3212</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing DLL files when moving EXE to new machine; SF 2.41 build 2559]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3210#p3210</link>
			<description><![CDATA[<p>Rod,</p><p>It looks like you&#039;re not compiling a truly static executable.&nbsp; You&#039;re linking with the static gfortran runtime library (<em>-static-libgfortran</em>), but you&#039;re not using the static libgcc library.&nbsp; Switching the project to &quot;All Static&quot; in Project Options under the Linker tab should correct the problem in theory.&nbsp; The makefile should change to say &quot;<em>-static</em>&quot; rather than just &quot;<em>-static-libgfortran</em>&quot; on the linking step.</p><p>There shouldn&#039;t be any dependency on the pthread library. Our OpenMP implementation does not use it.&nbsp; There is a possibility, though, that the compiler itself is adding the pthread flag because you&#039;re using the &quot;<em>-floop-parallelize-all</em>&quot; flag.&nbsp; I&#039;ll look into the linking options.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Thu, 11 Oct 2018 11:41:54 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3210#p3210</guid>
		</item>
		<item>
			<title><![CDATA[Missing DLL files when moving EXE to new machine; SF 2.41 build 2559]]></title>
			<link>http://forums.approximatrix.com/viewtopic.php?pid=3207#p3207</link>
			<description><![CDATA[<p>When I move my executable to a new machine, one which does not have SF installed, I get multiple messages that certain DLL are missing from the machine. Here is an example od one of the files it complains about: libgcc_s_seh-1.dll I did try to moved this DLL to the new machine but it just complains about a new one. </p><p>I have pthreadGC2-64.dll on this different machine and that was all I needed previously to port an application to a new platform. What am I doing wrong that my executable is no longer portable? </p><p>The executable is 64 bit, the OS is 64 bit... what else is there?</p><p>Thanks<br />Rod</p><p>Oh, here is the Makefile:<br />#<br /># Automagically generated by Approximatrix Simply Fortran 2.41<br />#<br />FC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gfortran.exe&quot;<br />CC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\gcc.exe&quot;<br />AR=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\ar.exe&quot;<br />WRC=&quot;C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\windres.exe&quot;<br />RM=rm -f</p><br /><p>OPTFLAGS= -O3 -fgraphite-identity -floop-interchange -floop-strip-mine -floop-block -floop-parallelize-all -mtune=broadwell</p><p>SPECIALFLAGS=$(IDIR)</p><p>RCFLAGS=-O coff</p><p>PRJ_FFLAGS= -fopenmp</p><p>PRJ_CFLAGS=</p><p>PRJ_LFLAGS=-Wl,--stack,1500000000 -lgomp</p><p>FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_FFLAGS) -Jmodules </p><p>CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_CFLAGS)</p><p>&quot;build\riod.o&quot;: &quot;.\riod.f90&quot;<br />&nbsp; &nbsp; @echo Compiling .\riod.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;build\riod.o&quot; $(FFLAGS) &quot;.\riod.f90&quot;</p><p>clean: .SYMBOLIC<br />&nbsp; &nbsp; @echo Deleting build\riod.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;build\riod.o&quot;<br />&nbsp; &nbsp; @echo Deleting default icon resource<br />&nbsp; &nbsp; @$(RM) &quot;build\sf_default_resource.res&quot;<br />&nbsp; &nbsp; @echo Deleting riod.exe<br />&nbsp; &nbsp; @$(RM) &quot;riod.exe&quot;</p><p>&quot;riod.exe&quot;:&nbsp; &quot;build\riod.o&quot; &quot;build\Riod-MP-F90.prj.target&quot;<br />&nbsp; &nbsp; @echo Generating riod.exe<br />&nbsp; &nbsp; @$(FC) -o &quot;riod.exe&quot; -static-libgfortran -fopenmp &quot;build\riod.o&quot; $(LDIR) $(PRJ_LFLAGS)</p><p>all: &quot;riod.exe&quot; .SYMBOLIC</p>]]></description>
			<author><![CDATA[null@example.com (grogley)]]></author>
			<pubDate>Tue, 09 Oct 2018 18:44:42 +0000</pubDate>
			<guid>http://forums.approximatrix.com/viewtopic.php?pid=3207#p3207</guid>
		</item>
	</channel>
</rss>
