<?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[Probleme mit den Includes]]></title><description><![CDATA[<p>Hallo,<br />
ich probiere nun aufgrund einiger Fehlversuche mit anderen IDEs Visual Studio aus. Seit geraumer Zeit versuche ich nun schon diverse Manipulationen mit libxml2 an einem XML-Dokument vorzunehmen bisher leider ohne Erfolg...Mal gibt es hier ein Problem mal dort. Ich hoffe das es mit VS un etwas leichter wird.</p>
<p>Nun habe ich aber das Problem, dass immer wieder folgender Fehler kommt:</p>
<p>Deleting intermediate files and output files for project 'Testprogramm - Win32 Debug'.<br />
--------------------Configuration: Testprogramm - Win32 Debug--------------------<br />
Compiling...<br />
StdAfx.cpp<br />
Compiling...<br />
Testprogramm.cpp<br />
c:\programme\microsoft visual studio\myprojects\testprogramm\libxml\xmlmemory.h(16) : fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory<br />
Error executing cl.exe.</p>
<p>Testprogramm.exe - 1 error(s), 0 warning(s)</p>
<p>Problem ist, dass die Headerdatei auf jeden fall in<br />
c:\programme\microsoft visual studio\myprojects\testprogramm\libxml\<br />
...zu finden ist.</p>
<p>So sieht der Code aus:</p>
<pre><code class="language-cpp">// Testprogramm.cpp : Defines the entry point for the console application.
//

#include &quot;stdafx.h&quot;
#include &quot;stdio.h&quot;
#include &quot;string.h&quot;
#include &quot;stdlib.h&quot;
#include &quot;libxml/xmlmemory.h&quot;
#include &quot;libxml/parser.h&quot;

void parseStory (xmlDocPtr doc, xmlNodePtr cur) {

	xmlChar *key;
	 cur = cur-&gt;xmlChildrenNode;

	 while (cur != NULL) {

		    key = xmlNodeListGetString(doc, cur-&gt;xmlChildrenNode, 1);  
			if(key!=NULL){
				printf(&quot;%s\n&quot;, key);
			}
		    xmlFree(key);

	cur = cur-&gt;next;
	}
    return;
}

static void parseDoc(char *docname) {

	xmlDocPtr doc;
	xmlNodePtr cur;

	doc = xmlParseFile(docname);

	if (doc == NULL ) {
		fprintf(stderr,&quot;Document not parsed successfully. \n&quot;);
		return;
	}

	cur = xmlDocGetRootElement(doc);

	if (cur == NULL) {
		fprintf(stderr,&quot;empty document\n&quot;);
		xmlFreeDoc(doc);
		return;
	}

	if (xmlStrcmp(cur-&gt;name, (const xmlChar *) &quot;YMResult&quot;)) {
		fprintf(stderr,&quot;document of the wrong type, root node != story&quot;);
		xmlFreeDoc(doc);
		return;
	}

	cur = cur-&gt;xmlChildrenNode;
	while (cur != NULL) {

			parseStory (doc, cur);

	cur = cur-&gt;next;
	}

	xmlFreeDoc(doc);
	return;
}

void getReference (xmlDocPtr doc, xmlNodePtr cur) {

	xmlChar *uri;
	cur = cur-&gt;xmlChildrenNode;
	while (cur != NULL) {
	    if ((!xmlStrcmp(cur-&gt;name, (const xmlChar *)&quot;NavItm&quot;))) {
		    uri = xmlGetProp(cur, (const xmlChar *)&quot;uri&quot;);
		    printf(&quot;uri: %s\n&quot;, uri);
		    xmlFree(uri);
	    }
	    cur = cur-&gt;next;
	}
	return;
}

int main(int argc, char **argv) {

	char *docname =&quot;result.xml&quot;;
	parseDoc(docname);

system(&quot;PAUSE&quot;);

	return (1);
}
</code></pre>
<p>Die Headerfiles die benötigt werden liegen alle im Verzeichnis libxml im Projektordner.</p>
<p>Kann es sein, dass man noch irgendwo in VS Einstellungen vornehmen muss, damit er sie findet?</p>
<p>Habe die beiden Header Parser.h und xmlmemory.h über Project -&gt; Add to Project -&gt; File hinzugefügt.</p>
<p>Vielen Dank für Eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/184038/probleme-mit-den-includes</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Apr 2026 21:36:43 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/184038.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jun 2007 17:21:12 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Probleme mit den Includes on Mon, 11 Jun 2007 17:37:21 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich probiere nun aufgrund einiger Fehlversuche mit anderen IDEs Visual Studio aus. Seit geraumer Zeit versuche ich nun schon diverse Manipulationen mit libxml2 an einem XML-Dokument vorzunehmen bisher leider ohne Erfolg...Mal gibt es hier ein Problem mal dort. Ich hoffe das es mit VS un etwas leichter wird.</p>
<p>Nun habe ich aber das Problem, dass immer wieder folgender Fehler kommt:</p>
<p>Deleting intermediate files and output files for project 'Testprogramm - Win32 Debug'.<br />
--------------------Configuration: Testprogramm - Win32 Debug--------------------<br />
Compiling...<br />
StdAfx.cpp<br />
Compiling...<br />
Testprogramm.cpp<br />
c:\programme\microsoft visual studio\myprojects\testprogramm\libxml\xmlmemory.h(16) : fatal error C1083: Cannot open include file: 'libxml/xmlversion.h': No such file or directory<br />
Error executing cl.exe.</p>
<p>Testprogramm.exe - 1 error(s), 0 warning(s)</p>
<p>Problem ist, dass die Headerdatei auf jeden fall in<br />
c:\programme\microsoft visual studio\myprojects\testprogramm\libxml\<br />
...zu finden ist.</p>
<p>So sieht der Code aus:</p>
<pre><code class="language-cpp">// Testprogramm.cpp : Defines the entry point for the console application.
//

#include &quot;stdafx.h&quot;
#include &quot;stdio.h&quot;
#include &quot;string.h&quot;
#include &quot;stdlib.h&quot;
#include &quot;libxml/xmlmemory.h&quot;
#include &quot;libxml/parser.h&quot;

void parseStory (xmlDocPtr doc, xmlNodePtr cur) {

	xmlChar *key;
	 cur = cur-&gt;xmlChildrenNode;

	 while (cur != NULL) {

		    key = xmlNodeListGetString(doc, cur-&gt;xmlChildrenNode, 1);  
			if(key!=NULL){
				printf(&quot;%s\n&quot;, key);
			}
		    xmlFree(key);

	cur = cur-&gt;next;
	}
    return;
}

static void parseDoc(char *docname) {

	xmlDocPtr doc;
	xmlNodePtr cur;

	doc = xmlParseFile(docname);

	if (doc == NULL ) {
		fprintf(stderr,&quot;Document not parsed successfully. \n&quot;);
		return;
	}

	cur = xmlDocGetRootElement(doc);

	if (cur == NULL) {
		fprintf(stderr,&quot;empty document\n&quot;);
		xmlFreeDoc(doc);
		return;
	}

	if (xmlStrcmp(cur-&gt;name, (const xmlChar *) &quot;YMResult&quot;)) {
		fprintf(stderr,&quot;document of the wrong type, root node != story&quot;);
		xmlFreeDoc(doc);
		return;
	}

	cur = cur-&gt;xmlChildrenNode;
	while (cur != NULL) {

			parseStory (doc, cur);

	cur = cur-&gt;next;
	}

	xmlFreeDoc(doc);
	return;
}

void getReference (xmlDocPtr doc, xmlNodePtr cur) {

	xmlChar *uri;
	cur = cur-&gt;xmlChildrenNode;
	while (cur != NULL) {
	    if ((!xmlStrcmp(cur-&gt;name, (const xmlChar *)&quot;NavItm&quot;))) {
		    uri = xmlGetProp(cur, (const xmlChar *)&quot;uri&quot;);
		    printf(&quot;uri: %s\n&quot;, uri);
		    xmlFree(uri);
	    }
	    cur = cur-&gt;next;
	}
	return;
}

int main(int argc, char **argv) {

	char *docname =&quot;result.xml&quot;;
	parseDoc(docname);

system(&quot;PAUSE&quot;);

	return (1);
}
</code></pre>
<p>Die Headerfiles die benötigt werden liegen alle im Verzeichnis libxml im Projektordner.</p>
<p>Kann es sein, dass man noch irgendwo in VS Einstellungen vornehmen muss, damit er sie findet?</p>
<p>Habe die beiden Header Parser.h und xmlmemory.h über Project -&gt; Add to Project -&gt; File hinzugefügt.</p>
<p>Vielen Dank für Eure Hilfe</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303373</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303373</guid><dc:creator><![CDATA[lokiht]]></dc:creator><pubDate>Mon, 11 Jun 2007 17:37:21 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit den Includes on Tue, 12 Jun 2007 06:41:07 GMT]]></title><description><![CDATA[<p>Vielleicht fehlt c:\programme\microsoft visual studio\myprojects\testprogramm\libxml\ bei den Include-Verzeichnissen?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303695</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303695</guid><dc:creator><![CDATA[jencas]]></dc:creator><pubDate>Tue, 12 Jun 2007 06:41:07 GMT</pubDate></item><item><title><![CDATA[Reply to Probleme mit den Includes on Tue, 12 Jun 2007 06:46:50 GMT]]></title><description><![CDATA[<p>Wenn du einen relativen Pfad angibst, sucht der Compiler afaik ausgehend von dem Verzeichnis, in dem die aktuell bearbeitete Datei steht. Das heißt, in der &quot;xmlmemory.h&quot; versuchst du die &quot;c:\programme\microsoft visual studio\myprojects\testprogramm\libxml\libxml\xmlversion.h&quot; einzubinden, die allerdings nicht existiert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1303698</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1303698</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Tue, 12 Jun 2007 06:46:50 GMT</pubDate></item></channel></rss>