<?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[Eclipse, Qt und eine C++ Gui Programme]]></title><description><![CDATA[<p>ich versuche ein einfaches Frame/Window in Win7 zu schreiben und öffnen mit C++.<br />
In dem Qt Creator 5.3 es geht. Nun möchte ich ähnliches mit Eclipse Luna 4.4.0 machen, aber Eclipse findet ein Problem was mir schleierhaft ist.</p>
<p>in dem Eclipse IDE habe ich alle (!) libraries unter Qt/5.3/mingw482_32/lib importiert, alle *.a, *.prl</p>
<p>Unten sind die Dateien, Sf.cpp, SfWin.cpp SfWin.h und das console Output von Qt Creator build und Eclipse-MinGW build</p>
<p>Beide benutzen das gleiche MinGW und beide haben kein SfWin.ui Form damit alles ist so einfach wie möglich</p>
<p>In Eclipse kein Makefile ist zu finden.</p>
<p>Also was is los in dem build mit der SfWin.o Datei?</p>
<p><strong>Qt Creator Build Output</strong> - alles okay</p>
<p>10:11:37: Running steps for project Sf...<br />
10:11:37: Configuration unchanged, skipping qmake step.<br />
10:11:37: Starting: &quot;E:\Qt\Tools\mingw482_32\bin\mingw32-make.exe&quot;<br />
E:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release<br />
mingw32-make[1]: Entering directory 'E:/Qtwp/build-Sf-Desktop-Release'<br />
E:\Qt\5.3\mingw482_32\bin\uic.exe ..\Sf\sfwin.ui -o ui_sfwin.h<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Sf -I&quot;..\..\Qt\5.3\mingw482_32\include&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtWidgets&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtGui&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtCore&quot; -I&quot;release&quot; -I&quot;.&quot; -I&quot;.&quot; -I&quot;..\..\Qt\5.3\mingw482_32\mkspecs\win32-g++&quot; -o release\main.o ..\Sf\main.cpp<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Sf -I&quot;..\..\Qt\5.3\mingw482_32\include&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtWidgets&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtGui&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtCore&quot; -I&quot;release&quot; -I&quot;.&quot; -I&quot;.&quot; -I&quot;..\..\Qt\5.3\mingw482_32\mkspecs\win32-g++&quot; -o release\sfwin.o ..\Sf\sfwin.cpp<br />
E:\Qt\5.3\mingw482_32\bin\moc.exe -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -IE:/Qt/5.3/mingw482_32/mkspecs/win32-g++ -IE:/Qtwp/Sf -IE:/Qt/5.3/mingw482_32/include -IE:/Qt/5.3/mingw482_32/include/QtWidgets -IE:/Qt/5.3/mingw482_32/include/QtGui -IE:/Qt/5.3/mingw482_32/include/QtCore -I. ..\Sf\sfwin.h -o release\moc_sfwin.cpp<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Sf -I&quot;..\..\Qt\5.3\mingw482_32\include&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtWidgets&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtGui&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtCore&quot; -I&quot;release&quot; -I&quot;.&quot; -I&quot;.&quot; -I&quot;..\..\Qt\5.3\mingw482_32\mkspecs\win32-g++&quot; -o release\moc_sfwin.o release\moc_sfwin.cpp<br />
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\Sf.exe release/main.o release/sfwin.o release/moc_sfwin.o -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LE:/Qt/5.3/mingw482_32/lib -lqtmain -LC:\mingw482\mingw32\lib -LC:\Utils\icu32_52_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\opensll\lib -LE:\Qt\5.3\mingw482_32/lib -lQt5Widgets -lQt5Gui -lQt5Core<br />
mingw32-make[1]: Leaving directory 'E:/Qtwp/build-Sf-Desktop-Release'<br />
10:11:41: The process &quot;E:\Qt\Tools\mingw482_32\bin\mingw32-make.exe&quot; exited normally.<br />
10:11:41: Elapsed time: 00:03.</p>
<p><strong>Eclipse-MinGW Build Output</strong> - warum hat SfWin.o Probleme???</p>
<p>09:17:58 **** Rebuild of configuration Release for project Sf ****<br />
Info: Internal Builder is used for build<br />
g++ &quot;-IE:\\Qt\\5.3\\mingw482_32\\include&quot; &quot;-IE:\\Qt\\5.3\\mingw482_32\\include\\QtWidgets&quot; -O3 -Wall -c -fmessage-length=0 -o &quot;src\\SfWin.o&quot; &quot;..\\src\\SfWin.cpp&quot;<br />
g++ &quot;-IE:\\Qt\\5.3\\mingw482_32\\include&quot; &quot;-IE:\\Qt\\5.3\\mingw482_32\\include\\QtWidgets&quot; -O3 -Wall -c -fmessage-length=0 -o &quot;src\\Sf.o&quot; &quot;..\\src\\Sf.cpp&quot;<br />
g++ -o Sf.exe &quot;src\\SfWin.o&quot; &quot;src\\Sf.o&quot;<br />
src\SfWin.o:SfWin.cpp:(.text+0x1): undefined reference to <code>\_imp\_\_\_ZN7QWidgetD2Ev' src\\SfWin.o:SfWin.cpp:(.text+0x7): undefined reference to</code>vtable for SfWin'<br />
src\SfWin.o:SfWin.cpp:(.text+0xe): undefined reference to <code>vtable for SfWin' src\\SfWin.o:SfWin.cpp:(.text+0x38): undefined reference to</code>vtable for SfWin'<br />
src\SfWin.o:SfWin.cpp:(.text+0x3f): undefined reference to <code>vtable for SfWin' src\\SfWin.o:SfWin.cpp:(.text+0x45): undefined reference to</code>_imp___ZN7QWidgetD2Ev'<br />
src\SfWin.o:SfWin.cpp:(.text+0x99): undefined reference to <code>\_imp\_\_\_ZN7QWidgetC2EPS_6QFlagsIN2Qt10WindowTypeEE' src\\SfWin.o:SfWin.cpp:(.text+0x9f): undefined reference to</code>vtable for SfWin'<br />
src\SfWin.o:SfWin.cpp:(.text+0xa6): undefined reference to <code>vtable for SfWin' e:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: src\\SfWin.o: bad reloc address 0x4 in section</code>.text.startup'<br />
collect2.exe: error: ld returned 1 exit status</p>
<p>09:18:00 Build Finished (took 2s.82ms)</p>
<p>Sf.cpp</p>
<pre><code>#include &quot;sfwin.h&quot;
#include &lt;QApplication&gt;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    SfWin w;

    w.showMe();

    return a.exec();
}
</code></pre>
<p>SfWin.h</p>
<pre><code>#ifndef SFWIN_H
#define SFWIN_H

#include &lt;QWidget&gt;

class SfWin : public QWidget
{
    Q_OBJECT

public:
    explicit SfWin(QWidget *parent = 0);
    ~SfWin();

    void showMe();

private:

};

#endif // SFWIN_H
</code></pre>
<p>SfWin.cpp</p>
<pre><code>#include &quot;sfwin.h&quot;
#include &quot;ui_sfwin.h&quot;
#include &lt;iostream&gt;

SfWin::SfWin(QWidget *parent) :
    QWidget(parent)
{
}

SfWin::~SfWin()
{
}

void SfWin::showMe() {
    cout &lt;&lt; &quot;in SfWin.showMe()&quot; &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/327681/eclipse-qt-und-eine-c-gui-programme</link><generator>RSS for Node</generator><lastBuildDate>Wed, 08 Jul 2026 23:53:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/327681.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 27 Aug 2014 08:45:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 08:45:37 GMT]]></title><description><![CDATA[<p>ich versuche ein einfaches Frame/Window in Win7 zu schreiben und öffnen mit C++.<br />
In dem Qt Creator 5.3 es geht. Nun möchte ich ähnliches mit Eclipse Luna 4.4.0 machen, aber Eclipse findet ein Problem was mir schleierhaft ist.</p>
<p>in dem Eclipse IDE habe ich alle (!) libraries unter Qt/5.3/mingw482_32/lib importiert, alle *.a, *.prl</p>
<p>Unten sind die Dateien, Sf.cpp, SfWin.cpp SfWin.h und das console Output von Qt Creator build und Eclipse-MinGW build</p>
<p>Beide benutzen das gleiche MinGW und beide haben kein SfWin.ui Form damit alles ist so einfach wie möglich</p>
<p>In Eclipse kein Makefile ist zu finden.</p>
<p>Also was is los in dem build mit der SfWin.o Datei?</p>
<p><strong>Qt Creator Build Output</strong> - alles okay</p>
<p>10:11:37: Running steps for project Sf...<br />
10:11:37: Configuration unchanged, skipping qmake step.<br />
10:11:37: Starting: &quot;E:\Qt\Tools\mingw482_32\bin\mingw32-make.exe&quot;<br />
E:/Qt/Tools/mingw482_32/bin/mingw32-make -f Makefile.Release<br />
mingw32-make[1]: Entering directory 'E:/Qtwp/build-Sf-Desktop-Release'<br />
E:\Qt\5.3\mingw482_32\bin\uic.exe ..\Sf\sfwin.ui -o ui_sfwin.h<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Sf -I&quot;..\..\Qt\5.3\mingw482_32\include&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtWidgets&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtGui&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtCore&quot; -I&quot;release&quot; -I&quot;.&quot; -I&quot;.&quot; -I&quot;..\..\Qt\5.3\mingw482_32\mkspecs\win32-g++&quot; -o release\main.o ..\Sf\main.cpp<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Sf -I&quot;..\..\Qt\5.3\mingw482_32\include&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtWidgets&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtGui&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtCore&quot; -I&quot;release&quot; -I&quot;.&quot; -I&quot;.&quot; -I&quot;..\..\Qt\5.3\mingw482_32\mkspecs\win32-g++&quot; -o release\sfwin.o ..\Sf\sfwin.cpp<br />
E:\Qt\5.3\mingw482_32\bin\moc.exe -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -D__GNUC__ -DWIN32 -IE:/Qt/5.3/mingw482_32/mkspecs/win32-g++ -IE:/Qtwp/Sf -IE:/Qt/5.3/mingw482_32/include -IE:/Qt/5.3/mingw482_32/include/QtWidgets -IE:/Qt/5.3/mingw482_32/include/QtGui -IE:/Qt/5.3/mingw482_32/include/QtCore -I. ..\Sf\sfwin.h -o release\moc_sfwin.cpp<br />
g++ -c -pipe -fno-keep-inline-dllexport -O2 -frtti -Wall -Wextra -fexceptions -mthreads -DUNICODE -DQT_NO_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_NEEDS_QMAIN -I..\Sf -I&quot;..\..\Qt\5.3\mingw482_32\include&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtWidgets&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtGui&quot; -I&quot;..\..\Qt\5.3\mingw482_32\include\QtCore&quot; -I&quot;release&quot; -I&quot;.&quot; -I&quot;.&quot; -I&quot;..\..\Qt\5.3\mingw482_32\mkspecs\win32-g++&quot; -o release\moc_sfwin.o release\moc_sfwin.cpp<br />
g++ -Wl,-s -Wl,-subsystem,windows -mthreads -o release\Sf.exe release/main.o release/sfwin.o release/moc_sfwin.o -lglu32 -lopengl32 -lgdi32 -luser32 -lmingw32 -LE:/Qt/5.3/mingw482_32/lib -lqtmain -LC:\mingw482\mingw32\lib -LC:\Utils\icu32_52_1_mingw482\lib -LC:\utils\postgresql\pgsql\lib -LC:\utils\mysql\mysql\lib -LC:\opensll\lib -LE:\Qt\5.3\mingw482_32/lib -lQt5Widgets -lQt5Gui -lQt5Core<br />
mingw32-make[1]: Leaving directory 'E:/Qtwp/build-Sf-Desktop-Release'<br />
10:11:41: The process &quot;E:\Qt\Tools\mingw482_32\bin\mingw32-make.exe&quot; exited normally.<br />
10:11:41: Elapsed time: 00:03.</p>
<p><strong>Eclipse-MinGW Build Output</strong> - warum hat SfWin.o Probleme???</p>
<p>09:17:58 **** Rebuild of configuration Release for project Sf ****<br />
Info: Internal Builder is used for build<br />
g++ &quot;-IE:\\Qt\\5.3\\mingw482_32\\include&quot; &quot;-IE:\\Qt\\5.3\\mingw482_32\\include\\QtWidgets&quot; -O3 -Wall -c -fmessage-length=0 -o &quot;src\\SfWin.o&quot; &quot;..\\src\\SfWin.cpp&quot;<br />
g++ &quot;-IE:\\Qt\\5.3\\mingw482_32\\include&quot; &quot;-IE:\\Qt\\5.3\\mingw482_32\\include\\QtWidgets&quot; -O3 -Wall -c -fmessage-length=0 -o &quot;src\\Sf.o&quot; &quot;..\\src\\Sf.cpp&quot;<br />
g++ -o Sf.exe &quot;src\\SfWin.o&quot; &quot;src\\Sf.o&quot;<br />
src\SfWin.o:SfWin.cpp:(.text+0x1): undefined reference to <code>\_imp\_\_\_ZN7QWidgetD2Ev' src\\SfWin.o:SfWin.cpp:(.text+0x7): undefined reference to</code>vtable for SfWin'<br />
src\SfWin.o:SfWin.cpp:(.text+0xe): undefined reference to <code>vtable for SfWin' src\\SfWin.o:SfWin.cpp:(.text+0x38): undefined reference to</code>vtable for SfWin'<br />
src\SfWin.o:SfWin.cpp:(.text+0x3f): undefined reference to <code>vtable for SfWin' src\\SfWin.o:SfWin.cpp:(.text+0x45): undefined reference to</code>_imp___ZN7QWidgetD2Ev'<br />
src\SfWin.o:SfWin.cpp:(.text+0x99): undefined reference to <code>\_imp\_\_\_ZN7QWidgetC2EPS_6QFlagsIN2Qt10WindowTypeEE' src\\SfWin.o:SfWin.cpp:(.text+0x9f): undefined reference to</code>vtable for SfWin'<br />
src\SfWin.o:SfWin.cpp:(.text+0xa6): undefined reference to <code>vtable for SfWin' e:/mingw/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: src\\SfWin.o: bad reloc address 0x4 in section</code>.text.startup'<br />
collect2.exe: error: ld returned 1 exit status</p>
<p>09:18:00 Build Finished (took 2s.82ms)</p>
<p>Sf.cpp</p>
<pre><code>#include &quot;sfwin.h&quot;
#include &lt;QApplication&gt;

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    SfWin w;

    w.showMe();

    return a.exec();
}
</code></pre>
<p>SfWin.h</p>
<pre><code>#ifndef SFWIN_H
#define SFWIN_H

#include &lt;QWidget&gt;

class SfWin : public QWidget
{
    Q_OBJECT

public:
    explicit SfWin(QWidget *parent = 0);
    ~SfWin();

    void showMe();

private:

};

#endif // SFWIN_H
</code></pre>
<p>SfWin.cpp</p>
<pre><code>#include &quot;sfwin.h&quot;
#include &quot;ui_sfwin.h&quot;
#include &lt;iostream&gt;

SfWin::SfWin(QWidget *parent) :
    QWidget(parent)
{
}

SfWin::~SfWin()
{
}

void SfWin::showMe() {
    cout &lt;&lt; &quot;in SfWin.showMe()&quot; &lt;&lt; endl;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/2415065</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415065</guid><dc:creator><![CDATA[Sequoia]]></dc:creator><pubDate>Wed, 27 Aug 2014 08:45:37 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 08:57:10 GMT]]></title><description><![CDATA[<p>Du brauchst eine qmake, aber warum quälst du dich heute noch mit Eclipse, der QTCreator nimmt dir die Arbeit ab und ist Open Source.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415067</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415067</guid><dc:creator><![CDATA[plugin]]></dc:creator><pubDate>Wed, 27 Aug 2014 08:57:10 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 12:42:25 GMT]]></title><description><![CDATA[<p>Das eigentliche Problem ist, dass er moc nicht aufruft und dann die moc_*.cpp Dateien nicht kompiliert und diese dann nicht mit linkt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415096</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415096</guid><dc:creator><![CDATA[DrakoXP]]></dc:creator><pubDate>Wed, 27 Aug 2014 12:42:25 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 13:22:37 GMT]]></title><description><![CDATA[<p>DrakoXP schrieb:</p>
<blockquote>
<p>Das eigentliche Problem ist, dass er moc nicht aufruft und dann die moc_*.cpp Dateien nicht kompiliert und diese dann nicht mit linkt.</p>
</blockquote>
<p>was ja letztlich von qmake mit erledigt wird.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415101</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415101</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Wed, 27 Aug 2014 13:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 14:07:39 GMT]]></title><description><![CDATA[<blockquote>
<blockquote>
<p>aber warum quälst du dich heute noch mit Eclipse,..?</p>
</blockquote>
</blockquote>
<p>warum quält sich Reinhold Messner in den Bergen?</p>
<p>Okay, ich werde die moc_<em>.</em> Dateien reinbringen und sehen was zunächst brennt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415106</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415106</guid><dc:creator><![CDATA[Sequoia]]></dc:creator><pubDate>Wed, 27 Aug 2014 14:07:39 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 14:15:09 GMT]]></title><description><![CDATA[<p>Eclipse ist eh die beste C++ IDE, die es atm gibt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415107</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415107</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Wed, 27 Aug 2014 14:15:09 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 14:42:55 GMT]]></title><description><![CDATA[<p>Kellerautomat schrieb:</p>
<blockquote>
<p>Eclipse ist eh die beste C++ IDE, die es atm gibt.</p>
</blockquote>
<p>In meiner [Java] Vorlesung: &quot;Am Anfang dürfen sie nicht Eclipse verwenden&quot; - Alle klatschen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415108</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415108</guid><dc:creator><![CDATA[5cript]]></dc:creator><pubDate>Wed, 27 Aug 2014 14:42:55 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Wed, 27 Aug 2014 20:57:28 GMT]]></title><description><![CDATA[<p>couldnt care less</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415129</guid><dc:creator><![CDATA[Kellerautomat]]></dc:creator><pubDate>Wed, 27 Aug 2014 20:57:28 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Fri, 29 Aug 2014 09:36:05 GMT]]></title><description><![CDATA[<p>In Eclipse Luna 4.4.0 möchte ich ein executable C++ project haben aber die Fahigkeit haben die 'makefile' Datei editieren zu dürfen.</p>
<p>Wie es geht :</p>
<p>Schritt 1. mach ein Executable Project aber lass die generierte makefile Datei sichtbar sein.</p>
<p>man erzeugt ein Executable C++ Project : 'OldProject'<br />
File/new/C++ Project<br />
Project name = 'OldProject'<br />
Project type : Executable/Hello World C++ Project<br />
Toolchain : MinGW GCC<br />
next<br />
next<br />
Advanced Settings.../'C/C++ Build'/Tool Chain Editor :<br />
Current Builder = Gnu Make Builder !!! nicht internal, sonst wird makefile versteckt !!!!<br />
Ok<br />
Finish</p>
<p>Build dieses OldProject und makefile, *.mk Dateien erscheinen</p>
<p>Schritt 2. mach ein Makefile Project und klaue das makefile und ganze Struktur von oben</p>
<p>in einem Makefile Project genannt 'MyProject',<br />
File/new/C++ Project<br />
project name = 'MyProject'<br />
project type : Makefile project/Hello World C++ Makefile Project<br />
Toolchain : MinGW GCC<br />
next<br />
next<br />
Advanced Settings.../'C/C++ Build'<br />
Generate Makefiles automatically : nicht selectiert !!! wir machen unser eigenes<br />
Use default build command : nicht selectiert !!!<br />
Build command = mingw32-make<br />
Ok<br />
Finish</p>
<p>Hier gibt's eine Error Meldung weil Makefile ! trotzdem ! generiert wurde</p>
<p>MyProject.cpp sieht aus wie ein main() mit in C geschrieben aber keine Sorge,<br />
dieses trotzdem generierte Makefile Datei benutzt 'g++'</p>
<p>Baue src und Default Folders wie in OldProject und kopiere makefile und *.mk von<br />
OldProject zu MyProject. MyProject.cpp --&gt; src Folder.</p>
<p>context menu/Eigenschaften/'C/C++ Build'/Build directory = ${workspace_loc:/bb/Default}<br />
!!! makefile liegt in MyProject/Default, nicht in MyProject</p>
<p>in kopierter makefile und *.mk Dateien, ändere 'OldProject' zu 'MyProject'</p>
<p>Und jetzt hat man ein project wie ein Executable Project aber man darf !! makefile editieren</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415287</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415287</guid><dc:creator><![CDATA[Sequoia]]></dc:creator><pubDate>Fri, 29 Aug 2014 09:36:05 GMT</pubDate></item><item><title><![CDATA[Reply to Eclipse, Qt und eine C++ Gui Programme on Fri, 29 Aug 2014 09:53:49 GMT]]></title><description><![CDATA[<p>qmake generiert make files<br />
man kann also die erste Generierung von hand anstoßen,<br />
ein eclipse Projekt mit eigenen makefiles anlegen<br />
und alles funktioniert<br />
man kann auch qmake als exterens tool anlegen, dann geht qmake auch auf Knopfdruck</p>
]]></description><link>https://www.c-plusplus.net/forum/post/2415288</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/2415288</guid><dc:creator><![CDATA[kurze_frage]]></dc:creator><pubDate>Fri, 29 Aug 2014 09:53:49 GMT</pubDate></item></channel></rss>