<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Approximatrix Forums — Iargc() and Getarg()]]></title>
	<link rel="self" href="http://forums.approximatrix.com/extern.php?action=feed&amp;tid=937&amp;type=atom" />
	<updated>2024-02-25T13:30:33Z</updated>
	<generator>PunBB</generator>
	<id>http://forums.approximatrix.com/viewtopic.php?id=937</id>
		<entry>
			<title type="html"><![CDATA[Re: Iargc() and Getarg()]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4284#p4284" />
			<content type="html"><![CDATA[<p>Yup I had Fortran set to 95. Complies just fine when set to Legacy. Thanks!</p>]]></content>
			<author>
				<name><![CDATA[Lewist57]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4033</uri>
			</author>
			<updated>2024-02-25T13:30:33Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4284#p4284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Iargc() and Getarg()]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4283#p4283" />
			<content type="html"><![CDATA[<p>Our included compiler, GNU Fortran, is not actually based on the old GNU g77 compiler; it is an entirely different compiler.&nbsp; However, the runtime library should provide those routines for backwards compatibility purposes.&nbsp; Do you happen to have a Fortran standard flag set?</p><p>Regardless, you could (and probably should) change them to the current standards-compliant calls:</p><p><em>iargc</em> becomes <em><a href="https://simplyfortran.com/docs/compiler/COMMAND_005fARGUMENT_005fCOUNT.html#COMMAND_005fARGUMENT_005fCOUNT">command_argument_count</a></em></p><p><em>getarg</em> becomes <em><a href="https://simplyfortran.com/docs/compiler/GET_005fCOMMAND_005fARGUMENT.html#GET_005fCOMMAND_005fARGUMENT">get_command_argument</a></em></p><p>Again, unless you&#039;ve set a flag/option to enforce a standard, the original code should have worked.&nbsp; I&#039;ll look into it.</p>]]></content>
			<author>
				<name><![CDATA[jeff]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=2</uri>
			</author>
			<updated>2024-02-24T19:27:34Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4283#p4283</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Iargc() and Getarg()]]></title>
			<link rel="alternate" href="http://forums.approximatrix.com/viewtopic.php?pid=4282#p4282" />
			<content type="html"><![CDATA[<p>)/Trying to compile some relatively old (90/95) code, and get the following compile time errors:</p><p>Generating target.exe<br />..\Test symbol table\F77_CLEANUP source code.o:F77_CLEANUP source code.f:(.text+0x15c0): undefined reference to `iargc_&#039;<br />..\Test symbol table\F77_CLEANUP source code.o:F77_CLEANUP source code.f:(.text+0x1883): undefined reference to `getarg_&#039;<br />..\Test symbol table\F77_CLEANUP source code.o:F77_CLEANUP source code.f:(.text+0x1b40): undefined reference to `getarg_&#039;<br />collect2.exe: error: ld returned 1 exit status<br />Error: Last command making (target.exe) returned a bad status<br />Error: Make execution terminated</p><p>Apparently iargc() and getarg() are intrinsic functions for GNU 77, which this compiler is based upon?&nbsp; Is this correct, and if so, are there any compiler or linker settings that need to be in place to compile properly?</p><p>Thanks!</p>]]></content>
			<author>
				<name><![CDATA[Lewist57]]></name>
				<uri>http://forums.approximatrix.com/profile.php?id=4033</uri>
			</author>
			<updated>2024-02-23T00:36:49Z</updated>
			<id>http://forums.approximatrix.com/viewtopic.php?pid=4282#p4282</id>
		</entry>
</feed>
