<?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[[gelöst] compilerfehler (ka was das heißt)]]></title><description><![CDATA[<p>[gelöst]<br />
es war meine eigene dummheit:<br />
g++ main.cpp <strong>-o</strong> ctl<br />
[/gelöst]</p>
<p>Hi,<br />
normalerweise komme ich ja mit dem Compiler (g++) zurecht, nur dieses mal spuckt er mir nichts brauchbares aus<br />
die Fehler erschienen erst, als ich die Länge eines Strings aus einem Array bestimmen wollte:</p>
<pre><code class="language-cpp">const int LEN1 = 16;
string highlight1[LEN1] = {&quot;auto &quot;,&quot;char &quot;,&quot;const &quot;,&quot;double &quot;,&quot;extern &quot;,&quot;float &quot;,&quot;int &quot;,&quot;long &quot;,&quot;register &quot;,&quot;short &quot;,&quot;signed &quot;,&quot;static &quot;,&quot;string &quot;,&quot;unsigned &quot;,&quot;void &quot;,&quot;volatile &quot;};
int len = highlight1[i].length();
</code></pre>
<p>hier die fehler:</p>
<pre><code>bla@desktop:/media/7A50-5816/projects/c++/code_to_latex/neu$ g++ main.cpp ctl 
ctl: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o:(.text+0x0): first defined here
ctl: In function `_fini':
(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crti.o:(.fini+0x0): first defined here
ctl:(.rodata+0x0): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o:(.rodata.cst4+0x0): first defined here
ctl: In function `itoc(int)':
(.text+0xe4): multiple definition of `itoc(int)'
/tmp/ccwfHvcv.o:main.cpp:(.text+0x0): first defined here
ctl: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o:(.data+0x0): first defined here
ctl: In function `__data_start':
(.data+0x8): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o:(.data+0x0): first defined here
ctl: In function `inttocolor(int)':
(.text+0x14b): multiple definition of `inttocolor(int)'
/tmp/ccwfHvcv.o:main.cpp:(.text+0x67): first defined here
ctl: In function `main':
(.text+0x3c1): multiple definition of `main'
/tmp/ccwfHvcv.o:main.cpp:(.text+0x2dd): first defined here
ctl: In function `_init':
(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crti.o:(.init+0x0): first defined here
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtend.o:(.dtors+0x0): multiple definition of `__DTOR_END__'
ctl:(.dtors+0x8): first defined here
/usr/bin/ld: error in ctl(.eh_frame); no .eh_frame_hdr table will be created.
collect2: ld returned 1 exit status
</code></pre>
<p>Ich kann damit wirklich gar nichts anfangen!!!<br />
Bin für jede Hilfe dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/269784/gelöst-compilerfehler-ka-was-das-heißt</link><generator>RSS for Node</generator><lastBuildDate>Sun, 30 Aug 2026 22:16:50 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/269784.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 01 Jul 2010 09:07:55 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [gelöst] compilerfehler (ka was das heißt) on Thu, 01 Jul 2010 10:48:32 GMT]]></title><description><![CDATA[<p>[gelöst]<br />
es war meine eigene dummheit:<br />
g++ main.cpp <strong>-o</strong> ctl<br />
[/gelöst]</p>
<p>Hi,<br />
normalerweise komme ich ja mit dem Compiler (g++) zurecht, nur dieses mal spuckt er mir nichts brauchbares aus<br />
die Fehler erschienen erst, als ich die Länge eines Strings aus einem Array bestimmen wollte:</p>
<pre><code class="language-cpp">const int LEN1 = 16;
string highlight1[LEN1] = {&quot;auto &quot;,&quot;char &quot;,&quot;const &quot;,&quot;double &quot;,&quot;extern &quot;,&quot;float &quot;,&quot;int &quot;,&quot;long &quot;,&quot;register &quot;,&quot;short &quot;,&quot;signed &quot;,&quot;static &quot;,&quot;string &quot;,&quot;unsigned &quot;,&quot;void &quot;,&quot;volatile &quot;};
int len = highlight1[i].length();
</code></pre>
<p>hier die fehler:</p>
<pre><code>bla@desktop:/media/7A50-5816/projects/c++/code_to_latex/neu$ g++ main.cpp ctl 
ctl: In function `_start':
(.text+0x0): multiple definition of `_start'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o:(.text+0x0): first defined here
ctl: In function `_fini':
(.fini+0x0): multiple definition of `_fini'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crti.o:(.fini+0x0): first defined here
ctl:(.rodata+0x0): multiple definition of `_IO_stdin_used'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o:(.rodata.cst4+0x0): first defined here
ctl: In function `itoc(int)':
(.text+0xe4): multiple definition of `itoc(int)'
/tmp/ccwfHvcv.o:main.cpp:(.text+0x0): first defined here
ctl: In function `__data_start':
(.data+0x0): multiple definition of `__data_start'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crt1.o:(.data+0x0): first defined here
ctl: In function `__data_start':
(.data+0x8): multiple definition of `__dso_handle'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtbegin.o:(.data+0x0): first defined here
ctl: In function `inttocolor(int)':
(.text+0x14b): multiple definition of `inttocolor(int)'
/tmp/ccwfHvcv.o:main.cpp:(.text+0x67): first defined here
ctl: In function `main':
(.text+0x3c1): multiple definition of `main'
/tmp/ccwfHvcv.o:main.cpp:(.text+0x2dd): first defined here
ctl: In function `_init':
(.init+0x0): multiple definition of `_init'
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/../../../../lib/crti.o:(.init+0x0): first defined here
/usr/lib/gcc/x86_64-linux-gnu/4.4.3/crtend.o:(.dtors+0x0): multiple definition of `__DTOR_END__'
ctl:(.dtors+0x8): first defined here
/usr/bin/ld: error in ctl(.eh_frame); no .eh_frame_hdr table will be created.
collect2: ld returned 1 exit status
</code></pre>
<p>Ich kann damit wirklich gar nichts anfangen!!!<br />
Bin für jede Hilfe dankbar!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919797</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919797</guid><dc:creator><![CDATA[sudo rm -rf]]></dc:creator><pubDate>Thu, 01 Jul 2010 10:48:32 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] compilerfehler (ka was das heißt) on Thu, 01 Jul 2010 09:10:55 GMT]]></title><description><![CDATA[<p>Was soll denn das ctl im Compileraufruf bewirken? Soll das der Name des erstellten Programms sein? Dann muss da -o davor.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919798</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919798</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Thu, 01 Jul 2010 09:10:55 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] compilerfehler (ka was das heißt) on Thu, 01 Jul 2010 09:34:52 GMT]]></title><description><![CDATA[<p>mist, war zu langsam, aber danke! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919811</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919811</guid><dc:creator><![CDATA[sudo rm -rf]]></dc:creator><pubDate>Thu, 01 Jul 2010 09:34:52 GMT</pubDate></item><item><title><![CDATA[Reply to [gelöst] compilerfehler (ka was das heißt) on Thu, 01 Jul 2010 09:36:41 GMT]]></title><description><![CDATA[<p>Pack das [gelöst] lieber in den Threadtitel, dann weiß man schon Bescheid, bevor man hier nachsieht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1919813</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1919813</guid><dc:creator><![CDATA[_matze]]></dc:creator><pubDate>Thu, 01 Jul 2010 09:36:41 GMT</pubDate></item></channel></rss>