<?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[Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler?]]></title><description><![CDATA[<p>Hallo ich will wissen, wie ich ein WinAPI Projekt mit dem GNU Compiler compilieren und linken kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/229520/wie-compiliert-man-ein-winapi-c-c-projekt-mit-dem-gnu-c-c-compiler</link><generator>RSS for Node</generator><lastBuildDate>Fri, 10 Apr 2026 05:37:18 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/229520.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 12 Dec 2008 21:30:39 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Fri, 12 Dec 2008 21:30:39 GMT]]></title><description><![CDATA[<p>Hallo ich will wissen, wie ich ein WinAPI Projekt mit dem GNU Compiler compilieren und linken kann?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1629715</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1629715</guid><dc:creator><![CDATA[GNU GCC]]></dc:creator><pubDate>Fri, 12 Dec 2008 21:30:39 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Fri, 12 Dec 2008 21:44:34 GMT]]></title><description><![CDATA[<p>Ohne Probleme?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1629718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1629718</guid><dc:creator><![CDATA[Wirdbald]]></dc:creator><pubDate>Fri, 12 Dec 2008 21:44:34 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Fri, 12 Dec 2008 21:51:58 GMT]]></title><description><![CDATA[<p>MinGW:</p>
<blockquote>
<p>A collection of freely available and freely distributable Windows specific header files and import libraries, augmenting the GNU Compiler Collection, (GCC), and its associated tools, (GNU binutils). MinGW provides a complete Open Source programming tool set which is suitable for the development of native Windows programs that do not depend on any 3rd-party C runtime DLLs.</p>
</blockquote>
<p>Das gibts als Collection mit der Bloodshed Dev-Cpp IDE unter:<br />
<a href="http://www.bloodshed.net/devcpp.html" rel="nofollow">http://www.bloodshed.net/devcpp.html</a></p>
<p>Projekt erstellen, programmieren compilen feddich,...</p>
<p>grüüße</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1629725</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1629725</guid><dc:creator><![CDATA[zeusosc]]></dc:creator><pubDate>Fri, 12 Dec 2008 21:51:58 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Fri, 12 Dec 2008 23:20:26 GMT]]></title><description><![CDATA[<p>Die ganze MinGW Suite habe ich schon installiert, nur kommt er mit dieser windows.h Datei nicht klar.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1629772</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1629772</guid><dc:creator><![CDATA[GNU GCC]]></dc:creator><pubDate>Fri, 12 Dec 2008 23:20:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sat, 13 Dec 2008 15:26:05 GMT]]></title><description><![CDATA[<p>ok,<br />
in welcher form??</p>
<p>Hast Du auch GUI statt konsole bei projekterstellen angegeben?<br />
greetz</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1629956</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1629956</guid><dc:creator><![CDATA[zeusosc]]></dc:creator><pubDate>Sat, 13 Dec 2008 15:26:05 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sat, 13 Dec 2008 15:42:44 GMT]]></title><description><![CDATA[<p>Und hast Du auch die Winapi mitinstalliert? Ich glaube, soweit ich mich erinnern kann, muss man das bei der Mingw-Installation extra angeben.</p>
<p>Ich hatte aber nie ein Problem damit. Falls Dein Projekt noch leer ist, fang's einfach mal neu an, mit der richtigen Vorlage in Deiner IDE.</p>
<p>Ansonsten schildere Dein Problem mal genauer. Welche Fehlermeldungen kommen? Wie hast Du den Compiler / Linker aufgerufen? ...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1629965</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1629965</guid><dc:creator><![CDATA[Wirdbald]]></dc:creator><pubDate>Sat, 13 Dec 2008 15:42:44 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sun, 14 Dec 2008 04:03:02 GMT]]></title><description><![CDATA[<p>zeusosc schrieb:</p>
<blockquote>
<p>ok,<br />
in welcher form??</p>
<p>Hast Du auch GUI statt konsole bei projekterstellen angegeben?<br />
greetz</p>
</blockquote>
<p>Ich nutze keine IDE dazu, sondern nen normalen aber guten Editor.</p>
<p>Compiliert und gelinkt habe ich es so:</p>
<pre><code>D:&gt; gcc test.c test2.c test3.c -o meinprogramm
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1630202</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630202</guid><dc:creator><![CDATA[GNU GCC]]></dc:creator><pubDate>Sun, 14 Dec 2008 04:03:02 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sun, 14 Dec 2008 07:16:59 GMT]]></title><description><![CDATA[<p>Weis zwar immer noch nicht wie du das machst?</p>
<p>Headerdateien hast du richtig eingebunden?</p>
<p>Wie hast du denn die Bibliotheken gelinkt?<br />
Bei vielen Compilern musst du das - nehme an bei GCC auch.</p>
<p>Also entweder ein passendes Makefile basteln oder eine IDE<br />
nehmen die das für dich erledigt.</p>
<p>MfG f.-th.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1630215</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630215</guid><dc:creator><![CDATA[f.-th.]]></dc:creator><pubDate>Sun, 14 Dec 2008 07:16:59 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sun, 14 Dec 2008 10:20:26 GMT]]></title><description><![CDATA[<p>f.-th. schrieb:</p>
<blockquote>
<p>Wie hast du denn die Bibliotheken gelinkt?</p>
</blockquote>
<p>Ich dachte windows.h ist ne Systembibliothek, was muß man da explizit angeben?<br />
Die sollte doch automatisch gefunden werden.</p>
<p>Unter Linux muß ich /usr/include ja auch nicht extra angeben, da es eh schon bekannt ist.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1630245</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630245</guid><dc:creator><![CDATA[GNU GCC]]></dc:creator><pubDate>Sun, 14 Dec 2008 10:20:26 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sun, 14 Dec 2008 11:38:41 GMT]]></title><description><![CDATA[<p>Da muss doch mit mindestens einer dll verlinkt werden. Nur #include reicht da nicht. Du müsstest doch eigentlich mindestens linker-Fehler bekommen. Poste die doch mal. Am besten mit dem minimalen fehlererzeugenden code. Sonst können wir hier nur Rätselraten. Am besten hältst Du dich an eine Anleitung. Zu WinApi gibt es so viel... Guck doch mal die FAQ hier im Forum an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1630276</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630276</guid><dc:creator><![CDATA[Wirdbald]]></dc:creator><pubDate>Sun, 14 Dec 2008 11:38:41 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sun, 14 Dec 2008 21:46:17 GMT]]></title><description><![CDATA[<p>Wirdbald schrieb:</p>
<blockquote>
<p>Da muss doch mit mindestens einer dll verlinkt werden. Nur #include reicht da nicht. Du müsstest doch eigentlich mindestens linker-Fehler bekommen. Poste die doch mal. Am besten mit dem minimalen fehlererzeugenden code. Sonst können wir hier nur Rätselraten. Am besten hältst Du dich an eine Anleitung. Zu WinApi gibt es so viel... Guck doch mal die FAQ hier im Forum an.</p>
</blockquote>
<p>Bei mir kommt folgende Fehlermeldung wenn ich versuche den Code so zu compilieren:</p>
<pre><code>G:\test&gt;gcc winapi_test.c -o winapi.exe
E:\Home\ADMINI~1\LOKALE~1\Temp/ccm2aaaa.o:winapi_test.c:(.text+0x6e): undefined
reference to `GetStockObject@4'
E:\Home\ADMINI~1\LOKALE~1\Temp/ccm2aaaa.o:winapi_test.c:(.text+0x253): undefined
 reference to `TextOutA@20'
collect2: ld returned 1 exit status

G:\test&gt;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1630537</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630537</guid><dc:creator><![CDATA[GNU GCC]]></dc:creator><pubDate>Sun, 14 Dec 2008 21:46:17 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Sun, 14 Dec 2008 22:03:19 GMT]]></title><description><![CDATA[<p>Wie man MFC Projekte mit G++ compiliert und linkt würde ich übrigens auch noch gerne wissen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1630545</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630545</guid><dc:creator><![CDATA[GNU GCC]]></dc:creator><pubDate>Sun, 14 Dec 2008 22:03:19 GMT</pubDate></item><item><title><![CDATA[Reply to Wie compiliert man ein WinAPI C&#x2F;C++ Projekt mit dem GNU C&#x2F;C++ Compiler? on Mon, 15 Dec 2008 03:48:27 GMT]]></title><description><![CDATA[<p>ok,<br />
es hilft eigentlich wenn Du mal einen blick auf<br />
<a href="http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/" rel="nofollow">http://gcc.gnu.org/onlinedocs/gcc-4.3.2/gcc/</a><br />
wirfst...</p>
<p>Ansonsten hier mal ein Beispiel:</p>
<blockquote>
<p>Compiler: Default compiler<br />
Building Makefile: &quot;C:\Dev-Cpp\Property_Pages\Makefile.win&quot;<br />
Führt make clean aus<br />
rm -f main.o property_sheet.o Property_Pages_private.res Property_Pages.exe</p>
<p>g++.exe -D__DEBUG__ -c main.cpp -o main.o -I&quot;C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2/backward&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2/mingw32&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2&quot; -I&quot;C:/Dev-Cpp/include&quot; -O3 -g3</p>
<p>g++.exe -D__DEBUG__ -c property_sheet.cpp -o property_sheet.o -I&quot;C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2/backward&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2/mingw32&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2&quot; -I&quot;C:/Dev-Cpp/include&quot; -O3 -g3</p>
<p>windres.exe -i Property_Pages_private.rc --input-format=rc -o Property_Pages_private.res -O coff</p>
<p>g++.exe -D__DEBUG__ main.o property_sheet.o Property_Pages_private.res -o &quot;Property_Pages.exe&quot; -L&quot;C:/Dev-Cpp/lib&quot; -mwindows ../lib/libcomdlg32.a ../lib/libcomctl32.a -g3</p>
<p>Ausführung beendet<br />
Kompilierung erfolgreich</p>
</blockquote>
<p>Zuerst wird ein clean ausgeführt,<br />
Dann in den ersten drei:<br />
erzeugung der main obj file, schau Dir dabei mal die -I statements an<br />
erzeugung der property sheet obj file, gleiches spiel<br />
resourcen werden erzeugt,..<br />
zum Schluss wird nur noch gelinkt,..</p>
<p>und hier nochmal eine Makefile</p>
<blockquote>
<p># Project: Property_Pages<br />
# Makefile created by Dev-C++ 4.9.9.2</p>
<p>CPP = g++.exe -D__DEBUG__<br />
CC = gcc.exe -D__DEBUG__<br />
WINDRES = windres.exe<br />
RES = Property_Pages_private.res<br />
OBJ = main.o property_sheet.o $(RES)<br />
LINKOBJ = main.o property_sheet.o $(RES)<br />
LIBS = -L&quot;C:/Dev-Cpp/lib&quot; -mwindows ../lib/libcomdlg32.a ../lib/libcomctl32.a -g3<br />
INCS = -I&quot;C:/Dev-Cpp/include&quot;<br />
CXXINCS = -I&quot;C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2/backward&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2/mingw32&quot; -I&quot;C:/Dev-Cpp/include/c++/3.4.2&quot; -I&quot;C:/Dev-Cpp/include&quot;<br />
BIN = Property_Pages.exe<br />
CXXFLAGS = $(CXXINCS) -O3 -g3<br />
CFLAGS = $(INCS) -O3 -g3<br />
RM = rm -f</p>
<p>.PHONY: all all-before all-after clean clean-custom</p>
<p>all: all-before Property_Pages.exe all-after</p>
<p>clean: clean-custom<br />
${RM} $(OBJ) $(BIN)</p>
<p>$(BIN): <span class="katex"><span class="katex-mathml"><math><semantics><mrow><mo>(</mo><mi>O</mi><mi>B</mi><mi>J</mi><mo>)</mo></mrow><annotation encoding="application/x-tex">(OBJ)  
</annotation></semantics></math></span><span class="katex-html" aria-hidden="true"><span class="strut" style="height:0.75em;"></span><span class="strut bottom" style="height:1em;vertical-align:-0.25em;"></span><span class="base textstyle uncramped"><span class="mopen">(</span><span class="mord mathit" style="margin-right:0.02778em;">O</span><span class="mord mathit" style="margin-right:0.05017em;">B</span><span class="mord mathit" style="margin-right:0.09618em;">J</span><span class="mclose">)</span></span></span></span>(CPP) $(LINKOBJ) -o &quot;Property_Pages.exe&quot; $(LIBS)</p>
<p>main.o: main.cpp<br />
$(CPP) -c main.cpp -o main.o $(CXXFLAGS)</p>
<p>property_sheet.o: property_sheet.cpp<br />
$(CPP) -c property_sheet.cpp -o property_sheet.o $(CXXFLAGS)</p>
<p>Property_Pages_private.res: Property_Pages_private.rc Unbenannt2.rc<br />
$(WINDRES) -i Property_Pages_private.rc --input-format=rc -o Property_Pages_private.res -O coff</p>
</blockquote>
<p>Mit dem Link und dem Beispiel solltest Du keine Schwierigkeiten mehr haben Dein Projekt fertig zu kompilieren.</p>
<p>Sei gegrüßt</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1630581</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1630581</guid><dc:creator><![CDATA[zeusosc]]></dc:creator><pubDate>Mon, 15 Dec 2008 03:48:27 GMT</pubDate></item></channel></rss>