<?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[ärger mit sal.h]]></title><description><![CDATA[<p>hi leute,</p>
<p>ich brauche mal eure hilfe. Ich habe ein prog geschreiben, was nur einen kompilationsfehler hat mit dem ich nix anfangen kann. Der Compiler verweißt mich auf die datei sal.h mit folgender fehler meldung:</p>
<p>c:\programme\microsoft visual studio 8\vc\include\sal.h(226) : error C2144: Syntaxfehler: 'int' sollte auf ';' folgen</p>
<p>c:\programme\microsoft visual studio 8\vc\include\sal.h(226) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: &quot;default-int&quot; wird von C++ nicht unterstützt.</p>
<p>Ich hab mich schon über die datei kundig gemacht. Es geht in der datei um die unterstützung der parameter von funktionen. Darafuhin habe ich alle funktionsparameter in meinem programm überprüft. Habe aber auch keinen felher gefunden. Ich poste erstmal meinen code nicht dazu. Wenn ihr ihn brauchen solltet, einfach sagen. danke für eure hilfe</p>
<p>mfg freaker</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/176219/ärger-mit-sal-h</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 09:00:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/176219.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 19 Mar 2007 09:44:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 09:44:30 GMT]]></title><description><![CDATA[<p>hi leute,</p>
<p>ich brauche mal eure hilfe. Ich habe ein prog geschreiben, was nur einen kompilationsfehler hat mit dem ich nix anfangen kann. Der Compiler verweißt mich auf die datei sal.h mit folgender fehler meldung:</p>
<p>c:\programme\microsoft visual studio 8\vc\include\sal.h(226) : error C2144: Syntaxfehler: 'int' sollte auf ';' folgen</p>
<p>c:\programme\microsoft visual studio 8\vc\include\sal.h(226) : error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: &quot;default-int&quot; wird von C++ nicht unterstützt.</p>
<p>Ich hab mich schon über die datei kundig gemacht. Es geht in der datei um die unterstützung der parameter von funktionen. Darafuhin habe ich alle funktionsparameter in meinem programm überprüft. Habe aber auch keinen felher gefunden. Ich poste erstmal meinen code nicht dazu. Wenn ihr ihn brauchen solltet, einfach sagen. danke für eure hilfe</p>
<p>mfg freaker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248203</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248203</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:44:30 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 09:48:52 GMT]]></title><description><![CDATA[<p>Hast du die sal.h selber geschrieben? Wenn ja - dort fehlt ein Semikolon vor der Stelle, über die sich dein Compiler beschwert (das kann im Extremfall auch in dem letzten Header sein, den du <strong>vor</strong> der sal.h eingebunden hast).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248206</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248206</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:48:52 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 09:58:47 GMT]]></title><description><![CDATA[<p>die sal.h habe ich nicht selber geschrieben. die wurde von meiner entwicklungsumgebung spendiert. Deswegen kann ich auch nix mit anfangen. Ich hab grade nochmal getetestet. Es liegt an folgenden dateien. Wenn diese zwei vom projekt ausgeschlossen werden dann funktioniert es einwandfrei. Ich poste es mal rein:</p>
<p>particle.h</p>
<pre><code class="language-cpp">//*****************************************************************************************//
#if !defined(__particle_h__)
#define __particle_h__

//*****************************************************************************************//
#include &quot;vector3.h&quot;

//*****************************************************************************************//
class particle
{
private:
	vector3&lt;float&gt;	position_;
	vector3&lt;float&gt;	start_position_;
	vector3&lt;float&gt;	end_position_;
	vector3&lt;float&gt;	position_chaos_;

	vector3&lt;float&gt;	velocity_;
	vector3&lt;float&gt;	velocity_chaos_;

	float			gravity_;
	vector3&lt;float&gt;	wind_strength_;
	vector3&lt;float&gt;	distortion_;
	vector3&lt;float&gt;	rotation_;

	float			size_;
	float			start_size_;
	float			end_size_;
	float			size_chaos_;

	vector3&lt;float&gt;	color_;
	vector3&lt;float&gt;	start_color_;
	vector3&lt;float&gt;	end_color_;

	float			fade_out_;

	unsigned int	age_;
	unsigned int	maximal_age_;

	bool			alive_;

public:
	particle(void);
	particle(vector3&lt;float&gt; position);
	~particle(void);

public:
//*****************************************************************************************//
	void	set_position		(vector3&lt;float&gt; position);
	void	set_start_position	(vector3&lt;float&gt; position);
	void	set_end_position	(vector3&lt;float&gt; position);
	void	set_position_chaos	(vector3&lt;float&gt; chaos);

	void	set_velocity		(vector3&lt;float&gt; velocity);
	void	set_velocity_chaos	(vector3&lt;float&gt; chaos);

	void	set_gravity			(float gravity);
	void	set_wind_strength	(vector3&lt;float&gt; strength);
	void	set_distortion		(vector3&lt;float&gt; distortion);
	void	set_rotation		(vector3&lt;float&gt; rotation);

	void	set_size			(float size);
	void	set_start_size		(float size);
	void	set_end_size		(float size);
	void	set_size_chaos		(float chaos);

	void	set_color			(vector3&lt;float&gt; color);
	void	set_start_color		(vector3&lt;float&gt; color);
	void	set_end_color		(vector3&lt;float&gt; color);

	void	set_fade_out		(float fade_out);

	void	set_age				(unsigned int age);
	void	set_maximal_age		(unsigned int age);

	void	set_life			(bool life);

//*****************************************************************************************//
	vector3&lt;float&gt;	get_position		(void) const;
	vector3&lt;float&gt;	get_start_position	(void) const;
	vector3&lt;float&gt;	get_end_position	(void) const;
	vector3&lt;float&gt;	get_position_chaos	(void) const;

	vector3&lt;float&gt;	get_velocity		(void) const;
	vector3&lt;float&gt;	get_velocity_chaos	(void) const;

	float			get_gravity			(void) const;
	vector3&lt;float&gt;	get_wind_strength	(void) const;
	vector3&lt;float&gt;	get_distortion		(void) const;
	vector3&lt;float&gt;	get_rotation		(void) const;

	float			get_size			(void) const;
	float			get_start_size		(void) const;
	float			get_end_size		(void) const;
	float			get_size_chaos		(void) const;

	vector3&lt;float&gt;	get_color			(void) const;
	vector3&lt;float&gt;	get_start_color		(void) const;
	vector3&lt;float&gt;	get_end_color		(void) const;

	float			get_fade_out		(void) const;

	unsigned int	get_age				(void) const;
	unsigned int	get_maximal_age		(void) const;

	bool			get_life			(void) const;

//*****************************************************************************************//
	void	initialize(void);

	void	update(void);
	void	render(void);
};

//*****************************************************************************************//
#endif
</code></pre>
<p>und particle.cpp</p>
<pre><code class="language-cpp">//*****************************************************************************************//
#include &quot;particle.h&quot;

//*****************************************************************************************//
particle::particle(void)
{
	position_ = 0.0f;

	//initialize();
}

//*****************************************************************************************//
particle::particle(vector3&lt;float&gt; position) : position_(position)
{
	//initialize();
}

//*****************************************************************************************//
particle::~particle(void)
{

}

//*****************************************************************************************//
void particle::set_position(vector3&lt;float&gt; position)
{
	position_ = position;
}

//*****************************************************************************************//
void particle::set_start_position(vector3&lt;float&gt; position)
{
	start_position_ = position;
}

//*****************************************************************************************//
void particle::set_end_position(vector3&lt;float&gt; position)
{
	end_position_ = position;
}

//*****************************************************************************************//
void particle::set_position_chaos(vector3&lt;float&gt; chaos)
{
	position_chaos_ = chaos;
}

//*****************************************************************************************//
void particle::set_velocity(vector3&lt;float&gt; velocity)
{
	velocity_ = velocity;
}

//*****************************************************************************************//
void particle::set_velocity_chaos(vector3&lt;float&gt; chaos)
{
	velocity_chaos_ = chaos;
}

//*****************************************************************************************//
void particle::set_gravity(float gravity)
{
	gravity_ = gravity;
}

//*****************************************************************************************//
void particle::set_wind_strength(vector3&lt;float&gt; strength)
{
	wind_strength_ = strength;
}

//*****************************************************************************************//
void particle::set_distortion(vector3&lt;float&gt; distortion)
{
	distortion_ = distortion;
}

//*****************************************************************************************//
void particle::set_rotation(vector3&lt;float&gt; rotation)
{
	rotation_ = rotation;
}

//*****************************************************************************************//
void particle::set_size(float size)
{
	size_ = size;
}

//*****************************************************************************************//
void particle::set_start_size(float size)
{
	start_size_ = size;
}

//*****************************************************************************************//
void particle::set_end_size(float size)
{
	end_size_ = size;
}

//*****************************************************************************************//
void particle::set_size_chaos(float chaos)
{
	size_chaos_ = chaos;
}

//*****************************************************************************************//
void particle::set_color(vector3&lt;float&gt; color)
{
	color_ = color;
}

//*****************************************************************************************//
void particle::set_start_color(vector3&lt;float&gt; color)
{
	start_color_ = color;
}

//*****************************************************************************************//
void particle::set_end_color(vector3&lt;float&gt; color)
{
	end_color_ = color;
}

//*****************************************************************************************//
void particle::set_age(unsigned int age)
{
	age_ = age;
}

//*****************************************************************************************//
void particle::set_maximal_age(unsigned int age)
{
	maximal_age_ = age;
}

//*****************************************************************************************//
void particle::set_life(bool life)
{
	alive_ = life;
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_position(void) const
{
	return(position_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_start_position(void) const
{
	return(start_position_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_end_position(void) const
{
	return(end_position_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_position_chaos(void) const
{
	return(position_chaos_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_velocity(void) const
{
	return(velocity_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_velocity_chaos(void) const
{
	return(velocity_chaos_);
}

//*****************************************************************************************//
float particle::get_gravity(void) const
{
	return(gravity_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_wind_strength(void) const
{
	return(wind_strength_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_distortion(void) const
{
	return(distortion_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_rotation(void) const
{
	return(rotation_);
}

//*****************************************************************************************//
float particle::get_size(void) const
{
	return(size_);
}

//*****************************************************************************************//
float particle::get_start_size(void) const
{
	return(start_size_);
}

//*****************************************************************************************//
float particle::get_end_size(void) const
{
	return(end_size_);
}

//*****************************************************************************************//
float particle::get_size_chaos(void) const
{
	return(size_chaos_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_color(void) const
{
	return(color_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_start_color(void) const
{
	return(start_color_);
}

//*****************************************************************************************//
vector3&lt;float&gt; particle::get_end_color(void) const
{
	return(end_color_);
}

//*****************************************************************************************//
float particle::get_fade_out(void) const
{
	return(fade_out_);
}

//*****************************************************************************************//
unsigned int particle::get_age(void) const
{
	return(age_);
}

//*****************************************************************************************//
unsigned int particle::get_maximal_age(void) const
{
	return(maximal_age_);
}

//*****************************************************************************************//
bool particle::get_life(void) const
{
	return(alive_);
}

//*****************************************************************************************//
void particle::initialize(void)
{

}

//*****************************************************************************************//
void particle::update(void)
{

}

//*****************************************************************************************//
void particle::render(void)
{

}
</code></pre>
<p>mfg freaker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248213</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248213</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Mon, 19 Mar 2007 09:58:47 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 10:05:17 GMT]]></title><description><![CDATA[<p>Dann solltest du trotzdem mal verfolgen, wo die &quot;sal.h&quot; eingebunden wurde - und welche Header direkt VOR ihr landen.</p>
<p>(wenn du den Überblick verloren hast, compilere das Programm mal mit der Option \P - damit schaltest du den Compiler aus und kannst dir ansehen, was der Präprozessor im Alleingang aus deinem Programm macht)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248218</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248218</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 19 Mar 2007 10:05:17 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 10:43:58 GMT]]></title><description><![CDATA[<p>ich habe mla weiter getestet ob die einbindung der vector3.h was damit zu tun hat, weil dass der davor eingebundene header ist. Nun wirds ganz wild.</p>
<p>folgendes ich habe eine neue klasse hin zu gefügt:</p>
<pre><code class="language-cpp">class emitter
{

};
</code></pre>
<p>folgender fehler:</p>
<p>error C2143: Syntaxfehler: Es fehlt ';' vor '&lt;class-head&gt;'<br />
error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: &quot;default-int&quot; wird von C++ nicht unterstützt.</p>
<p>ich glaube dass ist das prob. aber was ne leere klasse kann doch nicht das problem sein. selbst wenn ich die weg lasse meckert er wegen der particle-klasse rum. crazy <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248254</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248254</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Mon, 19 Mar 2007 10:43:58 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 10:47:58 GMT]]></title><description><![CDATA[<p>Was ist denn die letzte Definition <strong>VOR</strong> dieser leeren Klasse (in der &quot;vector3.h&quot;) - ich tippe stark darauf, daß du dort eine Klassendefinition ohne abschließendes Semikolon stehen hast ( <code>class vector3{...}</code> &lt;- dort brauchst du ein ; am Ende).</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248258</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248258</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 19 Mar 2007 10:47:58 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 11:04:23 GMT]]></title><description><![CDATA[<p>leider fehlanzeige. die vector3.h kommt von unserer engine und ist schon knapp ein jahr alt. sie wurde schon mehrfach eingesetzt und auch gewartet da ist definitiv kein fehler. die macht auch sonst keinen ärger.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248278</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248278</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Mon, 19 Mar 2007 11:04:23 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 11:16:44 GMT]]></title><description><![CDATA[<p>Ich fürchte, wir reden aneinander vorbei - stell mal deine Compiler-Optionen auf /P und schau dir an, was unmittelbar vor der 'class emitter' bzw. der Zeile &quot;sal.h(226)&quot; im Quelltext steht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248286</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248286</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 19 Mar 2007 11:16:44 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 11:26:17 GMT]]></title><description><![CDATA[<p>sry für die frage aber wie bzw. wo stelle ich denn die compileroptionen auf /P ?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248292</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Mon, 19 Mar 2007 11:26:17 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 11:44:07 GMT]]></title><description><![CDATA[<p>looooooooooooooooooooooooooooooooooooooooool. wasn scheiß. ich habe die particle.h und die particle.cpp gelöscht neue datein angelgt und den exakten quelltext noch einmal hineinkopiert. sprich: die gleichen datein nur mit anderen namen. jez gehts. xD</p>
<p>ist das krank oder was. genau das gleiche und trotzdem diesmal keinen fehler. lol</p>
<p>trotzdem danke für deine hilfe CStoll.</p>
<p>mfg freaker</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248306</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248306</guid><dc:creator><![CDATA[freaker]]></dc:creator><pubDate>Mon, 19 Mar 2007 11:44:07 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Mon, 19 Mar 2007 12:05:24 GMT]]></title><description><![CDATA[<p>freaker schrieb:</p>
<blockquote>
<p>sry für die frage aber wie bzw. wo stelle ich denn die compileroptionen auf /P ?</p>
</blockquote>
<p>Unter Projekt -&gt; Einstellungen, Tab &quot;C/C++&quot; hast du unten das Feld &quot;Projekt Optionen:&quot;. Dort kannst du einfach ein /P am Ende der recht langen Liste von Optionen anfügen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1248323</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1248323</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Mon, 19 Mar 2007 12:05:24 GMT</pubDate></item><item><title><![CDATA[Reply to ärger mit sal.h on Tue, 24 Apr 2007 13:16:12 GMT]]></title><description><![CDATA[<p>Ich hab mich auch gerade mit dem gleichen Problem rumgeschlagen:</p>
<p>Das Problem war, ich hatte vermutlich mal statt Ctrl+S bloss S gedrückt und hatte diesen Buchstaben ganz am Anfang meiner Datei drin...</p>
<p>Vermutlich hattest du dort auch einen Buchstaben drin und beim neuen reinkopieren des Codes hast du den unwissentlich wieder weggemacht...</p>
<p>Tja, das leben ist hart ( eine Stunder verbraten mit diesem Problem..)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1272446</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1272446</guid><dc:creator><![CDATA[Yves]]></dc:creator><pubDate>Tue, 24 Apr 2007 13:16:12 GMT</pubDate></item></channel></rss>