<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive]]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe zu dem Fehler schon viele viele Beiträge gelesen, aber nichts hilft mir weiter. Ich seh den Wald vor lauter Bäumen ned mehr.</p>
<p>Hoffentlich könnt ihr mir helfen:</p>
<p>main.cpp</p>
<pre><code>/* includes */
#include &lt;iostream&gt;

/* includes headers */
#include &quot;main.h&quot;

using namespace std;

int main() {

	FricCalc classe;

	cout &lt;&lt; &quot;Klasseninstanz wurde angelegt&quot; &lt;&lt; endl;

	classe.Set_axMax(5);
	cout &lt;&lt; &quot;axMax wurde auf 5 vorinitialisiert.&quot; &lt;&lt; endl;

	classe.Set_ayMax(3);
	cout &lt;&lt; &quot;ayMax wurde auf 3 vorinitialisiert.&quot; &lt;&lt; endl;

	classe.Set_Ax(2);
	cout &lt;&lt; &quot;ax wurde auf 2 vorinitialisiert.&quot; &lt;&lt; endl;

	classe.Set_Ay(1);
	cout &lt;&lt; &quot;ay wurde auf 1 vorinitialisiert.&quot; &lt;&lt; endl;

	cout &lt;&lt; &quot;Berechnung wird durchgeführt.&quot; &lt;&lt; endl;
	int i = FricCalcn();

	cout &lt;&lt; &quot;Ergebnis der Berechnung lautet: &quot; &lt;&lt; classe.Get_fricRaw() &lt;&lt; endl;	

    	return 0;
}
</code></pre>
<p>main.h</p>
<pre><code>#ifndef MAIN_H
#define MAIN_H

/* includes */
#include &quot;Calcn.h&quot;
#endif
</code></pre>
<p>Calcn.h</p>
<pre><code>#ifndef CALCN_H
#define CALCN_H

/* includes */
#include &quot;main.h&quot;

/* functions */

int FricCalcn();				// Calculation of friction value

/* classes */

class FricCalc {

	float 	m_ax;	
	// weitere variablen			

	void 	init_array(float* bitAry); // function for initialization of array

	public:
		// Constructor
		FricCalc();	
		FricCalc(float ax, ...){
			m_ax = 		ax;
			...

			init_array(fricDetMaxFlgAry);
		}

		// Getters
		float 	Get_Ax()					{ return m_ax;}
		...

		// Setters
		void 	Set_Ax(float ax)				{ m_ax = ax;}
		...

		// Functions
		float 	Det_Max(float old, float neww)			{ return (neww &gt; old)?neww:old;}
		float 	Det_Min(float *Ary);
};

#endif /* CALCN_H */
</code></pre>
<p>Calcn.cpp</p>
<pre><code>/* includes */
#include &lt;iostream&gt;

/* includes headers */
#include &quot;main.h&quot;

using namespace std;

/* ----- Functions ----- */

int FricCalcn(){

	// AxMax / AyMax
	float axmax = classe.Det_Max(classe.Get_axMax(), classe.Get_Ax()); 	
	classe.Set_AxMax(axmax);	

	// Save new max value
	float aymax = classe.Det_Max(classe.Get_ayMax(), classe.Get_Ay());
	classe.Set_AyMax(aymax);

	float fricRaw = square ( pow( (FacC * classe.Get_Ax() ),2) + pow(100,2) * pow(classe.Get_Ay() ,2) ) / ConstG ;

	classe.Set_fricRaw(fricRaw);

	cout &lt;&lt; &quot;Berechnung erfolgreich abgeschlossen&quot; &lt;&lt; endl;

	return 0;
}

...
</code></pre>
<p>Fehler:</p>
<pre><code>Calcn.h:30:130: error: ISO C++ forbids declaration of 'FricCalcn' with no type [-fpermissive]
main.cpp: In function 'int main()':
main.cpp:18:2: error: 'FricCalc' was not declared in this scope
main.cpp:18:19: error: expected ';' before 'classe'
main.cpp:23:2: error: 'classe' was not declared in this scope
main.cpp:36:28: error: void value not ignored as it ought to be
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/335046/error-iso-c-forbids-declaration-of-friccalcn-with-no-type-fpermissive</link><generator>RSS for Node</generator><lastBuildDate>Sat, 25 Apr 2026 01:15:32 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/335046.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 27 Oct 2015 06:43:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 06:43:37 GMT]]></title><description><![CDATA[<p>Hallo Leute,</p>
<p>ich habe zu dem Fehler schon viele viele Beiträge gelesen, aber nichts hilft mir weiter. Ich seh den Wald vor lauter Bäumen ned mehr.</p>
<p>Hoffentlich könnt ihr mir helfen:</p>
<p>main.cpp</p>
<pre><code>/* includes */
#include &lt;iostream&gt;

/* includes headers */
#include &quot;main.h&quot;

using namespace std;

int main() {

	FricCalc classe;

	cout &lt;&lt; &quot;Klasseninstanz wurde angelegt&quot; &lt;&lt; endl;

	classe.Set_axMax(5);
	cout &lt;&lt; &quot;axMax wurde auf 5 vorinitialisiert.&quot; &lt;&lt; endl;

	classe.Set_ayMax(3);
	cout &lt;&lt; &quot;ayMax wurde auf 3 vorinitialisiert.&quot; &lt;&lt; endl;

	classe.Set_Ax(2);
	cout &lt;&lt; &quot;ax wurde auf 2 vorinitialisiert.&quot; &lt;&lt; endl;

	classe.Set_Ay(1);
	cout &lt;&lt; &quot;ay wurde auf 1 vorinitialisiert.&quot; &lt;&lt; endl;

	cout &lt;&lt; &quot;Berechnung wird durchgeführt.&quot; &lt;&lt; endl;
	int i = FricCalcn();

	cout &lt;&lt; &quot;Ergebnis der Berechnung lautet: &quot; &lt;&lt; classe.Get_fricRaw() &lt;&lt; endl;	

    	return 0;
}
</code></pre>
<p>main.h</p>
<pre><code>#ifndef MAIN_H
#define MAIN_H

/* includes */
#include &quot;Calcn.h&quot;
#endif
</code></pre>
<p>Calcn.h</p>
<pre><code>#ifndef CALCN_H
#define CALCN_H

/* includes */
#include &quot;main.h&quot;

/* functions */

int FricCalcn();				// Calculation of friction value

/* classes */

class FricCalc {

	float 	m_ax;	
	// weitere variablen			

	void 	init_array(float* bitAry); // function for initialization of array

	public:
		// Constructor
		FricCalc();	
		FricCalc(float ax, ...){
			m_ax = 		ax;
			...

			init_array(fricDetMaxFlgAry);
		}

		// Getters
		float 	Get_Ax()					{ return m_ax;}
		...

		// Setters
		void 	Set_Ax(float ax)				{ m_ax = ax;}
		...

		// Functions
		float 	Det_Max(float old, float neww)			{ return (neww &gt; old)?neww:old;}
		float 	Det_Min(float *Ary);
};

#endif /* CALCN_H */
</code></pre>
<p>Calcn.cpp</p>
<pre><code>/* includes */
#include &lt;iostream&gt;

/* includes headers */
#include &quot;main.h&quot;

using namespace std;

/* ----- Functions ----- */

int FricCalcn(){

	// AxMax / AyMax
	float axmax = classe.Det_Max(classe.Get_axMax(), classe.Get_Ax()); 	
	classe.Set_AxMax(axmax);	

	// Save new max value
	float aymax = classe.Det_Max(classe.Get_ayMax(), classe.Get_Ay());
	classe.Set_AyMax(aymax);

	float fricRaw = square ( pow( (FacC * classe.Get_Ax() ),2) + pow(100,2) * pow(classe.Get_Ay() ,2) ) / ConstG ;

	classe.Set_fricRaw(fricRaw);

	cout &lt;&lt; &quot;Berechnung erfolgreich abgeschlossen&quot; &lt;&lt; endl;

	return 0;
}

...
</code></pre>
<p>Fehler:</p>
<pre><code>Calcn.h:30:130: error: ISO C++ forbids declaration of 'FricCalcn' with no type [-fpermissive]
main.cpp: In function 'int main()':
main.cpp:18:2: error: 'FricCalc' was not declared in this scope
main.cpp:18:19: error: expected ';' before 'classe'
main.cpp:23:2: error: 'classe' was not declared in this scope
main.cpp:36:28: error: void value not ignored as it ought to be
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2472861</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472861</guid><dc:creator><![CDATA[linux-freak]]></dc:creator><pubDate>Tue, 27 Oct 2015 06:43:37 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 06:47:22 GMT]]></title><description><![CDATA[<p>Wozu dient der Header main.h, außer dazu, dir Zirkelschlüsse einzufangen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472862</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472862</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 27 Oct 2015 06:47:22 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 07:13:59 GMT]]></title><description><![CDATA[<p>Ich hab alles stark gekürzt...</p>
<p>Im header sind noch alle Konstanten und alle anderen Header inkludiert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472865</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472865</guid><dc:creator><![CDATA[linux-freak]]></dc:creator><pubDate>Tue, 27 Oct 2015 07:13:59 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 07:30:10 GMT]]></title><description><![CDATA[<p>Meine Beobachtung über Zirkelschlüsse gilt aber nach wie vor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472867</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472867</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 27 Oct 2015 07:30:10 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 07:36:04 GMT]]></title><description><![CDATA[<p>Was genau sind denn Zirkelschlüsse ?</p>
<p>Falls du das mehrmalige Inkludieren meinst ...<br />
deswegen habe ich überall ifndef's drin und alle anderen header nur in der main.h inkludiert</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472868</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472868</guid><dc:creator><![CDATA[linux-freak]]></dc:creator><pubDate>Tue, 27 Oct 2015 07:36:04 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 07:38:31 GMT]]></title><description><![CDATA[<p>Wenn du nicht mal kompilierbaren Code postest können wir dir nicht helfen. Bitte reduziere den Fehler auf ein Minimalbeispiel.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472869</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472869</guid><dc:creator><![CDATA[DarkShadow44]]></dc:creator><pubDate>Tue, 27 Oct 2015 07:38:31 GMT</pubDate></item><item><title><![CDATA[Reply to ERROR: ISO C++ forbids declaration of &#x27;FricCalcn&#x27; with no type [-fpermissive] on Tue, 27 Oct 2015 07:39:13 GMT]]></title><description><![CDATA[<p>linux-freak schrieb:</p>
<blockquote>
<p>Falls du das mehrmalige Inkludieren meinst ...<br />
deswegen habe ich überall ifndef's drin und alle anderen header nur in der main.h inkludiert</p>
</blockquote>
<p>Dann versuch mal nachzuvollziehen, was da wie genau expandiert wird. Du wirst feststellen, dass die ifdefs da überhaupt nichts bringen. Die sind für was anderes gut.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2472870</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2472870</guid><dc:creator><![CDATA[SeppJ]]></dc:creator><pubDate>Tue, 27 Oct 2015 07:39:13 GMT</pubDate></item></channel></rss>