<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Building library]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=497&amp;type=atom" />
	<updated>2015-10-30T11:43:05Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=497</id>
		<entry>
			<title type="html"><![CDATA[Re: Building library]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2254#p2254" />
			<content type="html"><![CDATA[<p>Klaus,</p><p>That&#039;s good to hear.&nbsp; I would suggest changing the <a href="http://simplyfortran.com/docs/full/options/project.html">&quot;Target Name&quot;</a> for each library so that you don&#039;t end up having to rename them in Windows Explorer or something similar.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-10-30T11:43:05Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2254#p2254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building library]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2253#p2253" />
			<content type="html"><![CDATA[<p>Jeff, <br />After downloading version 2.25 of Simply Fortran the lib is created without any remark. I suppose that the library has to be renamed later for use in the main program due to build more libraries?<br />Regards, Klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2015-10-30T10:26:37Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2253#p2253</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building library]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2235#p2235" />
			<content type="html"><![CDATA[<p>Klaus,</p><p>I think this makefile is not complete.&nbsp; Did you neglect to include some earlier information such as where PRJ_LFLAGS would be defined?</p><p>I suspect it may have something to do with $(PRJ_LFLAGS) being included in the AR command.&nbsp; I&#039;ve actually just disabled that flag for the next release of Simply Fortran if you&#039;re building a static library.&nbsp; Usually that variable should contain linker flags, but static libraries are not &quot;linked&quot; until the calling executable is compiled.&nbsp; Any flags will most likely just confuse AR. </p><p>Do you have anything set in the Linker box in Project Options under the Compiler Flags tab for this static library project?&nbsp; If so, delete anything in that box.&nbsp; It will almost certainly confuse AR.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-10-08T16:34:36Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2235#p2235</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building library]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2234#p2234" />
			<content type="html"><![CDATA[<p>Hi Jeff,<br />Hereby the requested contents of the Makefile:</p><p>FFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_FFLAGS) -J../modules </p><p>CFLAGS=$(SPECIALFLAGS) $(OPTFLAGS) $(PRJ_CFLAGS)</p><p>&quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot;: &quot;.\loadsetglobals.f90&quot;<br />&nbsp; &nbsp; @echo Compiling .\loadsetglobals.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot; $(FFLAGS) &quot;.\loadsetglobals.f90&quot;<br />&quot;..\modules\loadsetglobals.mod&quot; &quot;..\modules\scantlings_vars.mod&quot; : &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot; .EXISTSONLY<br />&nbsp; &nbsp; @echo Compiling .\loadsetglobals.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot; $(FFLAGS) &quot;.\loadsetglobals.f90&quot;</p><p>&quot;E:\ASC_prog_files\CASTOR12\StructureConcept\menu_control_struc_concept.o&quot;: &quot;.\menu_control_struc_concept.f90&quot;<br />&nbsp; &nbsp; @echo Compiling .\menu_control_struc_concept.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\menu_control_struc_concept.o&quot; $(FFLAGS) &quot;.\menu_control_struc_concept.f90&quot;</p><p>&quot;E:\ASC_prog_files\CASTOR12\StructureConcept\NavigateStructureConcept.o&quot;: &quot;.\NavigateStructureConcept.f90&quot; &quot;..\modules\loadsetglobals.mod&quot;<br />&nbsp; &nbsp; @echo Compiling .\NavigateStructureConcept.f90<br />&nbsp; &nbsp; @$(FC) -c -o &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\NavigateStructureConcept.o&quot; $(FFLAGS) &quot;.\NavigateStructureConcept.f90&quot;</p><p>clean: .SYMBOLIC<br />&nbsp; &nbsp; @echo Deleting E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot; &quot;..\modules\loadsetglobals.mod&quot; &quot;..\modules\scantlings_vars.mod&quot;<br />&nbsp; &nbsp; @echo Deleting E:\ASC_prog_files\CASTOR12\StructureConcept\menu_control_struc_concept.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\menu_control_struc_concept.o&quot;<br />&nbsp; &nbsp; @echo Deleting E:\ASC_prog_files\CASTOR12\StructureConcept\NavigateStructureConcept.o and related files<br />&nbsp; &nbsp; @$(RM) &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\NavigateStructureConcept.o&quot;<br />&nbsp; &nbsp; @echo Deleting fortran-library.a<br />&nbsp; &nbsp; @$(RM) &quot;fortran-library.a&quot;</p><p>&quot;fortran-library.a&quot;:&nbsp; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\menu_control_struc_concept.o&quot; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\NavigateStructureConcept.o&quot; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\structure concept.prj.target&quot;<br />&nbsp; &nbsp; @echo Generating fortran-library.a<br />&nbsp; &nbsp; @$(AR) rcs &quot;fortran-library.a&quot; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\loadsetglobals.o&quot; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\menu_control_struc_concept.o&quot; &quot;E:\ASC_prog_files\CASTOR12\StructureConcept\NavigateStructureConcept.o&quot; $(PRJ_LFLAGS)</p><p>all: &quot;fortran-library.a&quot; .SYMBOLIC</p><p>Don&#039;t hurry with reply; I am a couple of day&#039;s off.<br />Regards, Klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2015-10-07T20:06:53Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2234#p2234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Building library]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2231#p2231" />
			<content type="html"><![CDATA[<p>Klaus,</p><p>Could you post the contents of your Makefile here?&nbsp; I suspect some option is being set incorrectly by Simply Fortran.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2015-10-07T14:27:35Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2231#p2231</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Building library]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=2228#p2228" />
			<content type="html"><![CDATA[<p>Hi jeff, <br />I want to build a library containig source for special tasks.<br />After compiling three files generating of the lib fails with the following message:<br />==============================================================================<br />Generating Makefile... Okay<br />==============================================================================<br />Compiling .\loadsetglobals.f90<br />Compiling .\menu_control_struc_concept.f90<br />Compiling .\NavigateStructureConcept.f90<br />Generating fortran-library.a<br />C:\Program Files (x86)\Simply Fortran 2\mingw-w64\bin\ar.exe: two different operation options specified<br />Error(E42): Last command making (fortran-library.a) returned a bad status<br />Error(E02): Make execution terminated</p><p>* Failed *</p><p>I am using default options for that project only.<br />I am not experianced with compiler and builder options. Could you explain wat to do with the different &quot;operation options&quot;?<br />Thanks, Klaus</p>]]></content>
			<author>
				<name><![CDATA[Klaus Asmus]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=3617</uri>
			</author>
			<updated>2015-10-06T10:54:19Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=2228#p2228</id>
		</entry>
</feed>
