<?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[Programm wird nicht compiliert.]]></title><description><![CDATA[<p>Hallo!<br />
Ich möchte gerne einen netzwerkfähigen Treiber schreiben.<br />
Habe aber ein Problem:</p>
<pre><code class="language-cpp">#include &lt;winsock2.h&gt;
#include &lt;ntddk.h&gt;

NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPath)
{
    return STATUS_SUCCESS;
}
</code></pre>
<p>dieser Code wird nicht compiliert (158 Fehler). mache ich da was falsch?<br />
wenn die Datei winsock2.h nicht eingebunden wird, wird der Code compiliert ohne Fehler</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/218246/programm-wird-nicht-compiliert</link><generator>RSS for Node</generator><lastBuildDate>Fri, 09 Oct 2026 12:32:56 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/218246.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 17 Jul 2008 20:27:19 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Programm wird nicht compiliert. on Thu, 17 Jul 2008 20:27:19 GMT]]></title><description><![CDATA[<p>Hallo!<br />
Ich möchte gerne einen netzwerkfähigen Treiber schreiben.<br />
Habe aber ein Problem:</p>
<pre><code class="language-cpp">#include &lt;winsock2.h&gt;
#include &lt;ntddk.h&gt;

NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObject, PUNICODE_STRING pRegistryPath)
{
    return STATUS_SUCCESS;
}
</code></pre>
<p>dieser Code wird nicht compiliert (158 Fehler). mache ich da was falsch?<br />
wenn die Datei winsock2.h nicht eingebunden wird, wird der Code compiliert ohne Fehler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549076</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549076</guid><dc:creator><![CDATA[neoexpert]]></dc:creator><pubDate>Thu, 17 Jul 2008 20:27:19 GMT</pubDate></item><item><title><![CDATA[Reply to Programm wird nicht compiliert. on Thu, 17 Jul 2008 21:18:06 GMT]]></title><description><![CDATA[<p>Klappt's evtl, wenn du die Include-Reihenfolge vertauschst?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549084</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549084</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Thu, 17 Jul 2008 21:18:06 GMT</pubDate></item><item><title><![CDATA[Reply to Programm wird nicht compiliert. on Thu, 17 Jul 2008 23:22:16 GMT]]></title><description><![CDATA[<p>nein, genau so viele fehler</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549103</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549103</guid><dc:creator><![CDATA[neoexpert]]></dc:creator><pubDate>Thu, 17 Jul 2008 23:22:16 GMT</pubDate></item><item><title><![CDATA[Reply to Programm wird nicht compiliert. on Thu, 17 Jul 2008 23:45:05 GMT]]></title><description><![CDATA[<p>Hm, magst du die ersten paar Fehler posten (bitte nicht alle 158)? In welcher Datei treten die auf?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549104</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549104</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Thu, 17 Jul 2008 23:45:05 GMT</pubDate></item><item><title><![CDATA[Reply to Programm wird nicht compiliert. on Fri, 18 Jul 2008 01:57:18 GMT]]></title><description><![CDATA[<p>Wäre mir sowieso neu dass man in einem Treiber einfach so Winsock Funktionen verwenden kann.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549114</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549114</guid><dc:creator><![CDATA[hustbaer]]></dc:creator><pubDate>Fri, 18 Jul 2008 01:57:18 GMT</pubDate></item><item><title><![CDATA[Reply to Programm wird nicht compiliert. on Fri, 18 Jul 2008 08:22:13 GMT]]></title><description><![CDATA[<p>So sieht bei mir die Ausgabe aus, also die ersten paar fehler</p>
<p>BUILD: Adding /Y to COPYCMD so xcopy ops won't hang.<br />
BUILD: Object root set to: ==&gt; objchk_wnet_x86<br />
BUILD: Compile and Link for i386<br />
BUILD: Loading C:\WINDDK\3790~1.183\build.dat...<br />
BUILD: Computing Include file dependencies:<br />
BUILD: Examining c:\winddk\3790~1.183\mydrivers\wshsmple directory for files to<br />
compile.<br />
c:\winddk\3790~1.183\mydrivers\wshsmple - 1 source files (7 lines)<br />
BUILD: Compiling (NoSync) c:\winddk\3790~1.183\mydrivers\wshsmple directory<br />
Compiling - wshsmple.c for i386<br />
errors in directory c:\winddk\3790~1.183\mydrivers\wshsmple<br />
c:\winddk\3790.1830\inc\wnet\ntdef.h(83) : error C2220: warning treated as error<br />
- no object file generated<br />
c:\winddk\3790.1830\inc\wnet\ntdef.h(83) : error C4005: 'MAX_NATURAL_ALIGNMENT'<br />
: macro redefinition<br />
c:\winddk\3790.1830\inc\wnet\ntdef.h(116) : error C4005: 'PROBE_ALIGNMENT' : mac<br />
ro redefinition<br />
c:\winddk\3790.1830\inc\wnet\ntdef.h(661) : error C2011: '_FLOAT128' : 'struct'<br />
type redefinition<br />
c:\winddk\3790.1830\inc\wnet\ntdef.h(708) : error C2011: '_LARGE_INTEGER' : 'uni<br />
on' type redefinition<br />
c:\winddk\3790.1830\inc\wnet\ntdef.h(726) : error C2011: '_ULARGE_INTEGER' : 'un<br />
ion' type redefinition...............</p>
<p>Ich habe auch versucht ntddk.h nicht einzubinden, also nur winsock2.h, lief auch nicht, aber mit nur 9 fehler.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1549202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1549202</guid><dc:creator><![CDATA[neoexpert]]></dc:creator><pubDate>Fri, 18 Jul 2008 08:22:13 GMT</pubDate></item></channel></rss>