<?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[Kennt jemand diese Fehlermeldung ?]]></title><description><![CDATA[<p>Hii,</p>
<p>ich bin ziemlich am Anfang was die Programmierung von C++ auf Linux anbetrifft. Ich bekomme stets eine Fehlermeldung mit der ich überhaupt nicht weiterkomme. Die Fehlermeldung, die ich bekomme ist:</p>
<p>Description Resource Path Location Type<br />
expected »)« before »<em>« token nema.h jjjj 61 C/C++ Problem<br />
expected »)« before »</em>« token nema.h jjjj 62 C/C++ Problem<br />
expected »)« before »<em>« token nema.h jjjj 68 C/C++ Problem<br />
expected »)« before »</em>« token nema.h jjjj 69 C/C++ Problem<br />
expected »)« before »<em>« token nema.h jjjj 70 C/C++ Problem<br />
expected »)« before »</em>« token nema.h jjjj 71 C/C++ Problem<br />
format »%1u« erwartet Typ »unsigned int«, aber Argument 5 hat Typ »long unsigned int« nema.c jjjj 33 C/C++ Problem<br />
nmeap_def.h: No such file or directory nema.h jjjj 32 C/C++ Problem</p>
<p>Kann jemand was damit anfangen ?</p>
<p>Viele Grüße,<br />
elturco</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/217099/kennt-jemand-diese-fehlermeldung</link><generator>RSS for Node</generator><lastBuildDate>Sat, 10 Oct 2026 17:40:10 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/217099.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 03 Jul 2008 00:30:27 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Thu, 03 Jul 2008 00:30:27 GMT]]></title><description><![CDATA[<p>Hii,</p>
<p>ich bin ziemlich am Anfang was die Programmierung von C++ auf Linux anbetrifft. Ich bekomme stets eine Fehlermeldung mit der ich überhaupt nicht weiterkomme. Die Fehlermeldung, die ich bekomme ist:</p>
<p>Description Resource Path Location Type<br />
expected »)« before »<em>« token nema.h jjjj 61 C/C++ Problem<br />
expected »)« before »</em>« token nema.h jjjj 62 C/C++ Problem<br />
expected »)« before »<em>« token nema.h jjjj 68 C/C++ Problem<br />
expected »)« before »</em>« token nema.h jjjj 69 C/C++ Problem<br />
expected »)« before »<em>« token nema.h jjjj 70 C/C++ Problem<br />
expected »)« before »</em>« token nema.h jjjj 71 C/C++ Problem<br />
format »%1u« erwartet Typ »unsigned int«, aber Argument 5 hat Typ »long unsigned int« nema.c jjjj 33 C/C++ Problem<br />
nmeap_def.h: No such file or directory nema.h jjjj 32 C/C++ Problem</p>
<p>Kann jemand was damit anfangen ?</p>
<p>Viele Grüße,<br />
elturco</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540142</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540142</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Thu, 03 Jul 2008 00:30:27 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Thu, 03 Jul 2008 04:22:33 GMT]]></title><description><![CDATA[<p>Wie wärst mit dem Code- Schnippsel, in dem der Fehler Auftritt. Aus meinen hauptschüler Englischkenntnissen erschliesse ich das eine Klammer &quot;)&quot; vor einem Stern &quot;*&quot; erwartet wird. vll. ist deine Klammersetzung bspw. bei einer Dereferenzierung eines pointer falsch oder fehlt oder sonst was... ich kanns so nich richen..</p>
<p>also CODE HER.... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f621.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--pouting_face"
      title=":rage:"
      alt="😡"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540153</guid><dc:creator><![CDATA[HumanCompiler]]></dc:creator><pubDate>Thu, 03 Jul 2008 04:22:33 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Thu, 03 Jul 2008 06:29:17 GMT]]></title><description><![CDATA[<p>elturco schrieb:</p>
<blockquote>
<p>nmeap_def.h: No such file or directory nema.h jjjj 32 C/C++ Problem</p>
</blockquote>
<p>Ich würde mal ganz stark vermuten, dass er den Header nmeap_def.h nicht finden kann! Vielleicht sind deine Include-Pfade unvollständig o.ä.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540176</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540176</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 03 Jul 2008 06:29:17 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Thu, 03 Jul 2008 08:01:25 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>da die anderen beiden Dinge schon angesprochen wurden:</p>
<p><em>format »%1u« erwartet Typ »unsigned int«, aber Argument 5 hat Typ »long unsigned int« nema.c jjjj 33 C/C++ Problem</em></p>
<p>Das 5.Argument passt vom Typ her nicht zur Formatfestlegung &quot;%1u&quot;, wenn man es mit <em>long</em> zu tun hat, muss man ein &quot;l&quot; voranstellen: &quot;%1lu&quot;. Da die Eins in dieser Angabe ziemlich sinnfrei ist (ein <em>int</em> hat immer mindestens ein Zeichen), vermute ich einen (Ab-)Schreibfehler, die Eins sieht in manchen Zeichensätzen wie ein l aus...</p>
<p>MfG,</p>
<p>Probe-Nutzer</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540227</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540227</guid><dc:creator><![CDATA[Probe-Nutzer]]></dc:creator><pubDate>Thu, 03 Jul 2008 08:01:25 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Fri, 04 Jul 2008 00:42:39 GMT]]></title><description><![CDATA[<p>Ich danke Euch allen erstmal.. Tatsächlich ist die Anzahl der Fehlermeldungen deutlich gesunken, bekomme jetzt nur noch zwei... Die Header Datei nmeap_def.h hatte die meisten Fehler gehabt.</p>
<p>Hier mein Code.. Es handelt sich um eine Applikation um die GPS Daten, die in Form von NMEA vorliegen zu extrahieren. Das meiste habe ich übernommen einige Teile selber geschrieben.</p>
<p>HEADER</p>
<pre><code class="language-cpp">/*
 * nmea.h
 *
 *  Created on: 29.06.2008
 *      Author: elturco
 */

#ifndef NMEA_H_
#define NMEA_H_

#include &quot;nmeap_def.h&quot;
#define NMEAP_MAX_SENTENCES 8
#define NMEAP_MAX_SENTENCE_NAME_LENGTH 5
#define NMEAP_MAX_SENTENCE_LENGTH 255
#define NMEAP_MAX_TOKENS 24

//GGA Message ID
#define NMEAP_GPGGA 1
//RMC Message ID
#define NMEAP_GPRMC 2

#define NMEAP_USER 100

//forward references
struct nmeap_context;
struct nmeap_sentence;

//Callouts

typedef void (*nmeap_callout_t)(struct nmeap_context *context,void *sentence_data,void *user_data);
typedef int (*nmeap_sentence_parser_t)(struct nmeap_context *context,struct nmeap_sentence *sentence);

//DATA STRUCTURES
struct nmeap_gga{
	double latitude;
	double longitude;
	double altitude;
	unsigned long time;
	int satellites;
	int quality;
	double hdop;
	double geoid;
};
typedef struct nmeap_gga nmeap_ggt_t;

struct nmeap_rmc{
	unsigned long time;
	char warn;
	double latitude;
	double longitude;
	double speed;
	double course;
	unsigned long date;
	double magvar;
};
typedef struct nmeap_rmc nmeap_rmc_t;

//METHODS

int nmeap_int(nmeap_context_t *context,void *user_data);
int nmeap_addParser(nmeap_context_t *context,
		const char *sentence_name,
		nmeap_sentence_parser_t sentence_parser,
		nmeap_callout_t sentence_callout,
		void *sentence_data);

int nmeap_parseBuffer(nmeap_context_t *context, const char *buffer, int *length );
int nmeap_parse(nmeap_context_t *context, char ch);
int nmeap_gpgga(nmeap_context_t *context,nmeap_sentence_t *sentence);
int nmeap_gprmc(nmeap_context_t *context,nmeap_sentence_t *sentence);
double nmeap_latitude(const char *plat,const char *phem);
double nmeap_longitude(const char *plat,const char *phem);

#endif /* NMEA_H_ */
</code></pre>
<p>HEADER</p>
<pre><code class="language-cpp">/*
 * nmeap_def.h
 *
 *  Created on: 03.07.2008
 *      Author: elturco
 */

#ifndef NMEAP_DEF_H_
#define NMEAP_DEF_H_

typedef struct nmeap_sentence{
	char name[NMEAP_MAX_SENTENCE_NAME_LENGTH +1];
	int id;
	nmeap_sentence_parser_t parser;
	nmeap_callout_t callout;
	void *data;
};
nmeap_sentence_t;

//parser context
struct nmeap_context{
	nmeap_sentence_t sentence[NMEAP_MAX_SENTENCES];
	int sentence_count;
	char input[NMEAP_MAX_SENTENCE_LENGTH +1];
	int input_count;
	int input_state;
	char input_name[6];
	char icks;
	char ccks;

	char *token[NMEAP_MAX_TOKENS];
	int tokens;

	unsigned long msgs;
	unsigned long err_hdr;
	unsigned long err_ovr;
	unsigned long err_unk;
	unsigned long err_id;
	unsigned long err_cks;
	unsigned long err_crl;
	char debug_input[NMEAP_MAX_SENTENCE_LENGTH +1];

	void *user_data;
};
typedef struct nmeap_context nmeap_context_t;

#endif /* NMEAP_DEF_H_ */
</code></pre>
<p>CODE</p>
<pre><code class="language-cpp">/*
 * nema.cpp
 *
 *  Created on: 29.06.2008
 *      Author: elturco
 */
#include &quot;nema.h&quot;
#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;unistd.h&gt;
#include &lt;sys/types.h&gt;
#include &lt;sys/stat.h&gt;
#include &lt;sys/ioctl.h&gt;
#include &lt;sys/io.h&gt;
#include &lt;fcntl.h&gt;
#include &lt;termios.h&gt;
#include &lt;string.h&gt;
#include &lt;errno.h&gt;

static void print_gga(nmeap_ggt_t *gga){
	printf(&quot;found GPGGA message %.6f %.6f %.0f %1u %d %d %f %f\n&quot;,
			gga-&gt;latitude,
			gga-&gt;longitude,
			gga-&gt;altitude,
			gga-&gt;time,
			gga-&gt;satellites,
			gga-&gt;quality,
			gga-&gt;hdop,
			gga-&gt;geoid);
};
</code></pre>
<p>Fehlermeldung</p>
<blockquote>
<p>Description Resource Path Location Type<br />
expected identifier or »(« before »}« token nmeap_def.h jjjj 18 C/C++ Problem<br />
format »%1u« erwartet Typ »unsigned int«, aber Argument 5 hat Typ »long unsigned int« nema.c jjjj 33 C/C++ Problem</p>
</blockquote>
<p>Kann es sein, dass mein Compiler einmail mit gcc und einmal mit g++ compiliert ??</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540726</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540726</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Fri, 04 Jul 2008 00:42:39 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Fri, 04 Jul 2008 06:12:57 GMT]]></title><description><![CDATA[<p>zu &quot;expected identifier or »(« before »}« token nmeap_def.h jjjj 18 C/C++ Problem&quot;:</p>
<pre><code class="language-cpp">typedef struct nmeap_sentence{
    char name[NMEAP_MAX_SENTENCE_NAME_LENGTH +1];
    int id;
    nmeap_sentence_parser_t parser;
    nmeap_callout_t callout;
    void *data;
};
nmeap_sentence_t;
</code></pre>
<p>Ganz recht, bei typedef struct erwartet der Compiler nach der Strukturdefinition den Namen des Typedefs. Stattdessen findet er ein Semikolon. Dieses &quot;nmeap_sentence_t&quot; betrachtet er dann als freistehende Anweisung nach der Typdefinition.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540756</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540756</guid><dc:creator><![CDATA[LordJaxom]]></dc:creator><pubDate>Fri, 04 Jul 2008 06:12:57 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Fri, 04 Jul 2008 06:15:09 GMT]]></title><description><![CDATA[<p>Warum überhaupt &quot;typedef struct&quot;? Kommst du von C?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1540758</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1540758</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Fri, 04 Jul 2008 06:15:09 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Fri, 04 Jul 2008 23:30:36 GMT]]></title><description><![CDATA[<p>Danke Euch...</p>
<p>Die Fehler habe ich korrigiert. Ich benutzte Eclipse, wieso zeigt mir denn Eclipse nach wie vor die gleichen Fehler wenn ich es compiliere ??</p>
<p>Gibt es eine Besonderheit bei Eclipse diesbezüglich ?</p>
<p>Grüße,<br />
elturco</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541305</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541305</guid><dc:creator><![CDATA[elturco]]></dc:creator><pubDate>Fri, 04 Jul 2008 23:30:36 GMT</pubDate></item><item><title><![CDATA[Reply to Kennt jemand diese Fehlermeldung ? on Sat, 05 Jul 2008 03:17:25 GMT]]></title><description><![CDATA[<p>Wie kann man soviel Programmode schreiben und nicht mal die einfachsten Compileerrors korrigieren können? C&amp;P?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1541321</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1541321</guid><dc:creator><![CDATA[echt erstaunlich]]></dc:creator><pubDate>Sat, 05 Jul 2008 03:17:25 GMT</pubDate></item></channel></rss>