<?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[Fehler nach Portierung von MSVS zu GCC]]></title><description><![CDATA[<p>Hey,<br />
sorry für die Betreffzeile, leider spuckt mir der GCC compiler keine richtige Fehlermeldung aus. Ich habe ein Programm, was zuvor mit Microsoft Visual Studio 6 entwickelt worden ist. Ich probiere es gerade zu GCC zu portieren und bekomme einen seltene Fehlermeldung:</p>
<pre><code class="language-cpp">error = LCOM_MasterSetOption(LCOM_O_Synchr, 300);
</code></pre>
<blockquote>
<p>Fehlermeldung:<br />
to `LCOM_MasterSetOption'</p>
</blockquote>
<p>Es ist eine externe Funktion, die in lcmaster.h deklariert wird:</p>
<pre><code class="language-cpp">typedef enum{
  LCOM_O_IBuffered=1,
  LCOM_O_INoBuffered=2,
  LCOM_O_OBuffered=3,
  LCOM_O_ONoBuffered=4,
  LCOM_O_Asynchr=5,
  LCOM_O_Synchr=6
}LCOM_OPTIONS;

EXPORT LCOM_RES LCOM_MasterSetOption(LCOM_OPTIONS Options,int Arg);
</code></pre>
<p>Die Datei lcmaster.h wird in dem header File importiert, wo ich den Aufruf zu LCOM_MasterSetOption mache.</p>
<p>Danke für die Hilfe.</p>
<p>Gruß Konstantin</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/183387/fehler-nach-portierung-von-msvs-zu-gcc</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 09:33:53 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/183387.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jun 2007 14:38:44 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 14:38:44 GMT]]></title><description><![CDATA[<p>Hey,<br />
sorry für die Betreffzeile, leider spuckt mir der GCC compiler keine richtige Fehlermeldung aus. Ich habe ein Programm, was zuvor mit Microsoft Visual Studio 6 entwickelt worden ist. Ich probiere es gerade zu GCC zu portieren und bekomme einen seltene Fehlermeldung:</p>
<pre><code class="language-cpp">error = LCOM_MasterSetOption(LCOM_O_Synchr, 300);
</code></pre>
<blockquote>
<p>Fehlermeldung:<br />
to `LCOM_MasterSetOption'</p>
</blockquote>
<p>Es ist eine externe Funktion, die in lcmaster.h deklariert wird:</p>
<pre><code class="language-cpp">typedef enum{
  LCOM_O_IBuffered=1,
  LCOM_O_INoBuffered=2,
  LCOM_O_OBuffered=3,
  LCOM_O_ONoBuffered=4,
  LCOM_O_Asynchr=5,
  LCOM_O_Synchr=6
}LCOM_OPTIONS;

EXPORT LCOM_RES LCOM_MasterSetOption(LCOM_OPTIONS Options,int Arg);
</code></pre>
<p>Die Datei lcmaster.h wird in dem header File importiert, wo ich den Aufruf zu LCOM_MasterSetOption mache.</p>
<p>Danke für die Hilfe.</p>
<p>Gruß Konstantin</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298607</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298607</guid><dc:creator><![CDATA[kon]]></dc:creator><pubDate>Mon, 04 Jun 2007 14:38:44 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 14:52:12 GMT]]></title><description><![CDATA[<p>vielen dank für die überaus inkomplette compilermeldung</p>
<p>daraus lässt sich der überaus inkomplette schluss ziehen das du was falsch gemacht hast</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298624</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298624</guid><dc:creator><![CDATA[ronny]]></dc:creator><pubDate>Mon, 04 Jun 2007 14:52:12 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 15:00:03 GMT]]></title><description><![CDATA[<p>Tut mir leid - mehr gibt der Compiler NICHT her. Ich will nicht frech werden, aber das ist der Grund warum ich frage - ich kann mit der Meldung nichts anfangen.</p>
<p>Danke!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298632</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298632</guid><dc:creator><![CDATA[kon]]></dc:creator><pubDate>Mon, 04 Jun 2007 15:00:03 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 15:08:28 GMT]]></title><description><![CDATA[<p>Vielleicht ist irgendwo in den Weiten der GCC-Libraries ein LCOM oder so ein Makro definiert? Makros sind bei sowas meistens schuld, wenn die Fehlermeldung einem spanisch und unerklärlich vorkommt. Mußt du mal schauen.</p>
<p>Aber ich schätz mal, es ist EXPORT oder so schuld. Was sich dahinter verbirgt kennt der gcc anscheinend nicht mußt du in einem #ifdef-Statemant MSVC-exclusiv machen.</p>
<pre><code class="language-cpp">#ifdef _MSVC_VER
EXPORT LCOM_RES LCOM_MasterSetOption(LCOM_OPTIONS Options,int Arg);	
#elif
LCOM_RES LCOM_MasterSetOption(LCOM_OPTIONS Options,int Arg);	
#endif
</code></pre>
<p>Oder so ähnlich... Makros sind halt evil. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f603.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--grinning_face_with_big_eyes"
      title=":D"
      alt="😃"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298642</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298642</guid><dc:creator><![CDATA[Artchi]]></dc:creator><pubDate>Mon, 04 Jun 2007 15:08:28 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 16:02:41 GMT]]></title><description><![CDATA[<p>Hast du das tatsächlich aus der Kommandozeile heraus kompiliert?! Wenn nicht, dann tu das mal und gib die Fehlermeldung, die dann kommt.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298696</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298696</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Mon, 04 Jun 2007 16:02:41 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 17:51:42 GMT]]></title><description><![CDATA[<p>Hey,<br />
es ist etwas komplizierter. Mein Programm benutzt FLTK sowie OpenGL. Ich habe an die 50 Klassen und lasse mir daher das Makefile etc. von Eclipse (CDT Plugin mit MINGW)erstellen.</p>
<p>Sorry, habe mir wohl zu sehr auf Eclipse und die Problems View verlassen. Bei 400 Warnung wurde mir das etwas unübersichtlich - habe die Warnungen mal ausgeblendet. Also die console gibt folgendes her:</p>
<pre><code>g++ -DWIN32 -IC:\Dokumente und Einstellungen\konbs\Desktop\workspace\LIMSUI2\include -O0 -g3 -w -mwindows -c -fmessage-length=100 -osrc\limsmain.o ..\src\limsmain.cpp
</code></pre>
<p>Compiliert wird wohl anscheinend, das Problem tritt dann beim Linken auf:</p>
<pre><code>C:/Dokumente und Einstellungen/konbs/Desktop/workspace/LIMSUI2/Debug/../src/limsmain.cpp:2602: undefined reference to `LCOM_MasterSetOption(LCOM_OPTIONS, int)'
</code></pre>
<p>Beim Linker habe ich nur den LIB Order, der die *.a Dateien für FLTK enthält, eingebunden. Zum Testen habe ich mal die include anweisung für die lcmaster.h Datei auskommentiert und es tritt eine &quot;undeclared&quot; Meldung auf. Daher denke ich mal, dass es der Linker ist ... habe ich etwas vergessen einzubinden?</p>
<p>Danke für die super Hilfe!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298782</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298782</guid><dc:creator><![CDATA[kon]]></dc:creator><pubDate>Mon, 04 Jun 2007 17:51:42 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Mon, 04 Jun 2007 18:53:36 GMT]]></title><description><![CDATA[<p>kon schrieb:</p>
<blockquote>
<p>Bei 400 Warnung wurde mir das etwas unübersichtlich</p>
</blockquote>
<p><img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f62e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_open_mouth"
      title=":open_mouth:"
      alt="😮"
    /> bei 400 warnungen würde ich etwas misstrauisch werden.</p>
<p>kon schrieb:</p>
<blockquote>
<p>habe ich etwas vergessen einzubinden?</p>
</blockquote>
<p>vermutlich...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1298820</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1298820</guid><dc:creator><![CDATA[dot]]></dc:creator><pubDate>Mon, 04 Jun 2007 18:53:36 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Tue, 05 Jun 2007 14:57:20 GMT]]></title><description><![CDATA[<p>Hey,<br />
der include Ordner, der meine lcmaster.h und lcmaster.c enthält, wurde wohl nicht mit compiliert und somit auch nicht mit gelinkt. Haben den Ordner in den src (source) verschoben und jetzt lässt sich auch beim Aufruf des Linkers (src\limssl\lcmaster.o) finden.</p>
<p>Leider erhalte ich weiterhin die Meldung:</p>
<pre><code>undefined reference to `LCOM_MasterSetOption(LCOM_OPTIONS, int)'
</code></pre>
<p>Mein Aufruf sieht so aus:</p>
<pre><code class="language-cpp">error = LCOM_MasterSetOption(LCOM_O_Synchr, 300);
</code></pre>
<p>Kann er irgendwas mit dem Namespace zu tun haben? Mein Programm ist in C++ geschrieben wobei die Dateien lsmaster.h und lcmaster.c in C sind.</p>
<p>Danke für die super Unterstützung!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1299396</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1299396</guid><dc:creator><![CDATA[kon]]></dc:creator><pubDate>Tue, 05 Jun 2007 14:57:20 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Tue, 05 Jun 2007 15:32:24 GMT]]></title><description><![CDATA[<p>Mach mal ein</p>
<pre><code class="language-cpp">extern C
{
#include &quot;lcmaster.h&quot;
}
</code></pre>
<p>Hat mir bei einem änlichen Problem mit undefined references die in C geschrieben wurden geholfen...</p>
<p>Hat glaub ich irgendwas mit der Funktionssignatur zu tun... <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1299416</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1299416</guid><dc:creator><![CDATA[zeigerzeiger]]></dc:creator><pubDate>Tue, 05 Jun 2007 15:32:24 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler nach Portierung von MSVS zu GCC on Wed, 06 Jun 2007 15:47:38 GMT]]></title><description><![CDATA[<p>Thanks, this solved my problem. Now, I just have to care about the 400 warnings <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/1300175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1300175</guid><dc:creator><![CDATA[kon]]></dc:creator><pubDate>Wed, 06 Jun 2007 15:47:38 GMT</pubDate></item></channel></rss>