<?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[std::basic_string fehler]]></title><description><![CDATA[<p>undefined reference to ´std::basic_string(char, std::char_traits(char), std::allocator(char) )::size() const´</p>
<p>undefined reference to ´std::basic_string(char, std::char_traits(char), std::allocator(char) )::operator[](unsigned int) const´</p>
<p>undefined reference to ´std::basic_string(char, std::char_traits(char), std::allocator(char) )::operator[](unsigned int) const´</p>
<p>undefined reference to ´std::ios_base::Init::Init()<code>undefined reference to ´std::ios_base::Init::~Init()</code><br />
collect2: ld gab 1 als Ende-Status Zurük</p>
<p>kann da irgendjemand was mit anfangen</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/180583/std-basic_string-fehler</link><generator>RSS for Node</generator><lastBuildDate>Mon, 21 Sep 2026 20:46:51 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/180583.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 04 May 2007 11:40:16 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 11:40:16 GMT]]></title><description><![CDATA[<p>undefined reference to ´std::basic_string(char, std::char_traits(char), std::allocator(char) )::size() const´</p>
<p>undefined reference to ´std::basic_string(char, std::char_traits(char), std::allocator(char) )::operator[](unsigned int) const´</p>
<p>undefined reference to ´std::basic_string(char, std::char_traits(char), std::allocator(char) )::operator[](unsigned int) const´</p>
<p>undefined reference to ´std::ios_base::Init::Init()<code>undefined reference to ´std::ios_base::Init::~Init()</code><br />
collect2: ld gab 1 als Ende-Status Zurük</p>
<p>kann da irgendjemand was mit anfangen</p>
<p>danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278716</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278716</guid><dc:creator><![CDATA[Samuela]]></dc:creator><pubDate>Fri, 04 May 2007 11:40:16 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 11:41:13 GMT]]></title><description><![CDATA[<p>Wenn du das dazugehörige Programm zeigst, vielleicht.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278718</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278718</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 04 May 2007 11:41:13 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:05:27 GMT]]></title><description><![CDATA[<p>ComPort.cpp</p>
<p>// ComPort.cpp: Implementierung der Klasse CComPort.</p>
<p>//#include &quot;stdafx.h&quot;<br />
#include &quot;COMPort.h&quot;<br />
#include &lt;stdio.h&gt;<br />
#include &lt;iostream&gt;</p>
<p>//////////////////////////////////////////////////////////////////////<br />
// Konstruktion/Destruktion<br />
//////////////////////////////////////////////////////////////////////<br />
CCOMPort::CCOMPort()<br />
{<br />
this-&gt;m_fehler= NULL;<br />
this-&gt;m_hPort= 0; //Dateihandle =0<br />
}</p>
<p>CCOMPort::~CCOMPort()<br />
{<br />
this-&gt;Close();<br />
}<br />
//öffnet ein serielle Schnittstelle und es können wichtige Parameter der seriellen Schnittstelle gesetzt werden<br />
BOOL CCOMPort::Init(int iPort, int iBaud, int iSize, int iParity, int stopbit, int fRtsControl, int iTimeout, int iTotalTimeout)<br />
{<br />
char port[]= &quot;COM0123456789:&quot;; //&quot;Dateiname&quot;<br />
sprintf(port, &quot;COM%i:&quot;, iPort); //mit Port<br />
m_hPort = CreateFile( port,<br />
GENERIC_READ | GENERIC_WRITE,<br />
0,<br />
NULL,<br />
OPEN_EXISTING,<br />
FILE_ATTRIBUTE_NORMAL,<br />
NULL);<br />
if((int)this-&gt;m_hPort == -1) //wenn COM?: nicht vorhanden (-1)<br />
this-&gt;m_hPort=0;<br />
if(this-&gt;m_hPort !=0) //Handle ?<br />
{<br />
COMMTIMEOUTS comtime; //Timeouts ändern -&gt; schnellere Kommunikation<br />
GetCommTimeouts(this-&gt;m_hPort, &amp;comtime);<br />
comtime.ReadIntervalTimeout= iTimeout;<br />
comtime.ReadTotalTimeoutConstant= iTotalTimeout;<br />
comtime.WriteTotalTimeoutConstant= iTotalTimeout;<br />
comtime.ReadTotalTimeoutMultiplier=2;<br />
comtime.WriteTotalTimeoutMultiplier=0;<br />
SetCommTimeouts(this-&gt;m_hPort, &amp;comtime);</p>
<p>DCB dcb; //Gerätekommunikationsanpassung<br />
GetCommState(this-&gt;m_hPort, &amp;dcb);<br />
dcb.BaudRate= iBaud;<br />
dcb.ByteSize= iSize;<br />
dcb.DCBlength= 28;<br />
dcb.EofChar= 0;<br />
dcb.ErrorChar= 0;<br />
dcb.fRtsControl= fRtsControl;<br />
dcb.Parity= iParity;<br />
dcb.StopBits= stopbit;<br />
dcb.fInX=0;<br />
dcb.fOutX=0;<br />
dcb.fAbortOnError= 1;<br />
SetCommState(this-&gt;m_hPort, &amp;dcb);<br />
return true;<br />
}</p>
<p>return false;<br />
}<br />
//sendet Daten zur seriellen Schnittstelle<br />
BOOL CCOMPort::Send(void *puffer, unsigned int len)<br />
{<br />
DWORD written= 0;<br />
if(isOpen())<br />
{<br />
WriteFile(this-&gt;m_hPort, puffer, len, &amp;written, NULL);<br />
}<br />
if(len == written)<br />
return true;<br />
return false;<br />
}<br />
//holt Daten von der seriellen Schnittstelle<br />
int CCOMPort::Receive(void <em>puffer, int len)<br />
{<br />
DWORD receive=0;<br />
char</em> mich;<br />
if(m_hPort !=0 &amp;&amp; len &gt;0)<br />
{<br />
ReadFile(m_hPort, puffer, len, &amp;receive, NULL);<br />
}<br />
if(receive==0)<br />
this-&gt;m_fehler= mich;<br />
return receive;<br />
}<br />
//testet ob Zugang zur seriellen Schnittstelle besteht<br />
BOOL CCOMPort::isOpen()<br />
{<br />
if(m_hPort &gt;0)<br />
return true;<br />
return false;<br />
}<br />
//schließt die serielle Schnittstelle<br />
BOOL CCOMPort::Close()<br />
{<br />
if(isOpen())<br />
{<br />
CloseHandle(this-&gt;m_hPort);<br />
this-&gt;m_hPort= 0;<br />
return true;<br />
}<br />
return false;<br />
}</p>
<p>-------------------------------------------------------------------<br />
ComPort.h</p>
<p>#if !defined(toosten_COMPORT_H)<br />
#define toosten_COMPORT_H</p>
<p>#if _MSC_VER &gt; 1000<br />
#pragma once<br />
#endif // _MSC_VER &gt; 1000</p>
<p>#include &lt;windows.h&gt;</p>
<p>class CCOMPort<br />
{<br />
public:<br />
CCOMPort();<br />
~CCOMPort();<br />
BOOL Init(int iPort, int Baud =9600, int Size =8, int Parity =0, int stopbit=0, int fRtsControl =2, int Timeout =100, int TotalTimeout =1000);<br />
BOOL Send(void *PUFFER, unsigned int nBYTES);<br />
int Receive(void <em>PUFFER, int MAXBYTES);<br />
BOOL isOpen();<br />
BOOL Close();<br />
private:<br />
char</em> m_fehler;<br />
HANDLE m_hPort;<br />
};</p>
<p>#endif // !defined(toosten_COMPORT_H)</p>
<p>----------------------------------------------------------------------------<br />
sendstream.cpp<br />
/*<br />
Sends a stream to the MMDS where it will be broadcast</p>
<p>#include &lt;stdio.h&gt;<br />
#include &lt;stdlib.h&gt;<br />
#include &lt;string.h&gt;<br />
#include &lt;sys/stat.h&gt;<br />
#include &quot;COMPort.h&quot;<br />
//#include &quot;slideshow.h&quot;</p>
<p>#ifdef LINUX<br />
#include &lt;unistd.h&gt;<br />
#endif</p>
<p>#define MIN(a,b) (((a)&lt;(b))?(a):(b))</p>
<p>int main (int argc, char **argv)<br />
{<br />
char *host = NULL;<br />
char *provider = NULL;<br />
int port = 10000;<br />
char *path = NULL;<br />
int framesize;<br />
int handle;<br />
//CCOMPort Neu;<br />
return 0;<br />
}</p>
<p>Die untere Klasse soll COmport einbinden. Die Fehlermeldungen kommen,wenn ich beide</p>
<p>gcc sendstream.o COMPort.o -o sendstream.exe -lwsock32</p>
<p>Beim EInzel Kompilieren kommt keine meldung</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278740</guid><dc:creator><![CDATA[Samulea]]></dc:creator><pubDate>Fri, 04 May 2007 12:05:27 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:08:31 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">// ComPort.cpp: Implementierung der Klasse CComPort.

//#include &quot;stdafx.h&quot;
#include &quot;COMPort.h&quot;
#include &lt;stdio.h&gt;
#include &lt;iostream&gt;

//////////////////////////////////////////////////////////////////////
// Konstruktion/Destruktion
//////////////////////////////////////////////////////////////////////
CCOMPort::CCOMPort()
{
	this-&gt;m_fehler= NULL;
	this-&gt;m_hPort= 0;						//Dateihandle =0
}

CCOMPort::~CCOMPort()
{
	this-&gt;Close();							
}
//öffnet ein serielle Schnittstelle und es können wichtige Parameter der seriellen Schnittstelle gesetzt werden
BOOL CCOMPort::Init(int iPort, int iBaud, int iSize, int iParity, int stopbit, int fRtsControl, int iTimeout, int iTotalTimeout)
{
	char port[]= &quot;COM0123456789:&quot;;			//&quot;Dateiname&quot;
	sprintf(port, &quot;COM%i:&quot;, iPort);			//mit Port
	m_hPort = CreateFile(	port, 
		GENERIC_READ | GENERIC_WRITE, 
		0, 
		NULL, 
		OPEN_EXISTING,
		FILE_ATTRIBUTE_NORMAL, 
		NULL);
	if((int)this-&gt;m_hPort == -1)			//wenn COM?: nicht vorhanden (-1)
			this-&gt;m_hPort=0;
	if(this-&gt;m_hPort !=0)					//Handle ?
	{
		COMMTIMEOUTS comtime;				//Timeouts ändern -&gt; schnellere Kommunikation
		GetCommTimeouts(this-&gt;m_hPort, &amp;comtime);
		comtime.ReadIntervalTimeout= iTimeout;
		comtime.ReadTotalTimeoutConstant= iTotalTimeout;
		comtime.WriteTotalTimeoutConstant= iTotalTimeout;
		comtime.ReadTotalTimeoutMultiplier=2;
		comtime.WriteTotalTimeoutMultiplier=0;
		SetCommTimeouts(this-&gt;m_hPort, &amp;comtime);

		DCB dcb;							//Gerätekommunikationsanpassung
		GetCommState(this-&gt;m_hPort, &amp;dcb);
		dcb.BaudRate= iBaud;
		dcb.ByteSize= iSize;
		dcb.DCBlength= 28;
		dcb.EofChar= 0;
		dcb.ErrorChar= 0;
		dcb.fRtsControl= fRtsControl;
		dcb.Parity= iParity;
		dcb.StopBits= stopbit;
		dcb.fInX=0;
		dcb.fOutX=0;
		dcb.fAbortOnError= 1;
		SetCommState(this-&gt;m_hPort, &amp;dcb);
		return true;
	}

	return false;
}
//sendet Daten zur seriellen Schnittstelle
BOOL CCOMPort::Send(void *puffer, unsigned int len)
{
	DWORD written= 0;						
	if(isOpen())
	{										
		WriteFile(this-&gt;m_hPort, puffer, len, &amp;written, NULL);
	}
	if(len == written)						
		return true;
	return false;
}
//holt Daten von der seriellen Schnittstelle
int CCOMPort::Receive(void *puffer, int len)
{
	DWORD receive=0;
	char* mich;
        if(m_hPort !=0 &amp;&amp; len &gt;0)
	{
		ReadFile(m_hPort, puffer, len, &amp;receive, NULL);
	}
	if(receive==0)
		this-&gt;m_fehler= mich;
	return receive;
}
//testet ob Zugang zur seriellen Schnittstelle besteht
BOOL CCOMPort::isOpen()
{
	if(m_hPort &gt;0)
		return true;
	return false;
}
//schließt die serielle Schnittstelle
BOOL CCOMPort::Close()
{
	if(isOpen())
	{
		CloseHandle(this-&gt;m_hPort);
		this-&gt;m_hPort= 0;	
		return true;
	}
	return false;
}

-------------------------------------------------------------------
ComPort.h

#if !defined(toosten_COMPORT_H)
#define toosten_COMPORT_H

#if _MSC_VER &gt; 1000
#pragma once
#endif // _MSC_VER &gt; 1000

#include &lt;windows.h&gt;

class CCOMPort  
{
public:
	CCOMPort();										
	~CCOMPort();
	BOOL Init(int iPort, int Baud =9600, int Size =8, int Parity =0, int stopbit=0, int fRtsControl =2, int Timeout =100, int TotalTimeout =1000); 
	BOOL Send(void *PUFFER, unsigned int nBYTES);		
	int Receive(void *PUFFER, int MAXBYTES);		
	BOOL isOpen();	
	BOOL Close();
private:
	char* m_fehler;
	HANDLE m_hPort;
};

#endif // !defined(toosten_COMPORT_H)

----------------------------------------------------------------------------
sendstream.cpp
/*
  Sends a stream to the MMDS where it will be broadcast

#include &lt;stdio.h&gt;
#include &lt;stdlib.h&gt;
#include &lt;string.h&gt;
#include &lt;sys/stat.h&gt;
#include &quot;COMPort.h&quot;
//#include &quot;slideshow.h&quot;

#ifdef LINUX
#include &lt;unistd.h&gt;
#endif

#define MIN(a,b) (((a)&lt;(b))?(a):(b))

int main (int argc, char **argv)
{
  char *host = NULL;
  char *provider = NULL;
  int port = 10000;
  char *path = NULL;
  int framesize;
  int handle;
 //CCOMPort Neu;
return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1278742</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278742</guid><dc:creator><![CDATA[helferli]]></dc:creator><pubDate>Fri, 04 May 2007 12:08:31 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:09:38 GMT]]></title><description><![CDATA[<p>Das Problem ist ja auch wenn ich dann</p>
<p>CCOMPort Neu;</p>
<p>eingebe</p>
<p>erscheintn folgende medung</p>
<p>sendstream.o:sendstream.cpp:(.text+0x4ba): undefined reference to <code>\_\_\_gxx\_personality_sj0' sendstream.o:sendstream.cpp:(.text+0x512): undefined reference to</code>CCOMPort::CCOMPort()'<br />
sendstream.o:sendstream.cpp:(.text+0x934): undefined reference to <code>CCOMPort::~CCOMPort()' sendstream.o:sendstream.cpp:(.text+0x967): undefined reference to</code>CCOMPort::~CCOMPort()'<br />
collect2: ld gab 1 als Ende-Status zur&quot;uck</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278745</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278745</guid><dc:creator><![CDATA[Samulea]]></dc:creator><pubDate>Fri, 04 May 2007 12:09:38 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:14:49 GMT]]></title><description><![CDATA[<p>Wo genau verwendest du eigentlich iostream's oder string's? (beim ersten Überblick habe ich nichts gesehen)</p>
<p>Zu den Meldungen über CCOMPort::CComPort() - die treten auf, weil du die ComPort-Klasse nicht mit an den Linker übergeben hast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278750</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278750</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 04 May 2007 12:14:49 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:20:36 GMT]]></title><description><![CDATA[<p>Wie übergeb ich sie andem linker??</p>
<p>und zu dem Rest:</p>
<p>ich hab den include der iostream weggelassen und schon muckt er nicht mehr</p>
<p>das wars wohl</p>
<p>aber</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278755</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278755</guid><dc:creator><![CDATA[Samuela]]></dc:creator><pubDate>Fri, 04 May 2007 12:20:36 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:23:45 GMT]]></title><description><![CDATA[<p>Eigentlich sollte es gehen, wenn du dem Compiler alle beteiligten CPP's mitgibst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278760</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278760</guid><dc:creator><![CDATA[CStoll]]></dc:creator><pubDate>Fri, 04 May 2007 12:23:45 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:25:08 GMT]]></title><description><![CDATA[<p>Hat hingehaun..Jetzt bleibt noch die fehlermeldung<br />
sendstream.o:sendstream.cpp:(.text+0x4ba): undefined reference to `___gxx_personality_sj0'</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278764</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278764</guid><dc:creator><![CDATA[Samulea]]></dc:creator><pubDate>Fri, 04 May 2007 12:25:08 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:26:56 GMT]]></title><description><![CDATA[<p>Der Fehler komtm wenn ich jetzt auch ein Objekt deklariereen möchte</p>
<p>CCOMPort Neu;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278767</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278767</guid><dc:creator><![CDATA[Samuela]]></dc:creator><pubDate>Fri, 04 May 2007 12:26:56 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 12:32:04 GMT]]></title><description><![CDATA[<p>Der Ausdruck sieht insgesamt folgendeer Maßenb aus, wenn ich</p>
<p>CCOMPort Neu;</p>
<p>deklariere:</p>
<p>sendstream.o:sendstream.cpp:(.text+0x4ba): undefined reference to `___gxx_personality_sj0'<br />
collect2:ld gab 1 als ENDE-Statud zurück</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278774</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278774</guid><dc:creator><![CDATA[Samuela]]></dc:creator><pubDate>Fri, 04 May 2007 12:32:04 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 13:02:26 GMT]]></title><description><![CDATA[<p>Samuela schrieb:</p>
<blockquote>
<p>Der Ausdruck sieht insgesamt folgendeer Maßenb aus, wenn ich</p>
<p>CCOMPort Neu;</p>
<p>deklariere:</p>
<p>sendstream.o:sendstream.cpp:(.text+0x4ba): undefined reference to `___gxx_personality_sj0'<br />
collect2:ld gab 1 als ENDE-Statud zurück</p>
<p>Danke</p>
</blockquote>
<p>Das ist nicht nur eine Deklaration sondern auch eine Definition; hier wird implizit der Standardkonstriktor von CCOMPort aufgerufen, wie ich bereits geschrieben hatte.</p>
<p>Wenn Du mit dem gcc arbeitest solltest Du zum Linken g++ aufrufen; dann werden die richtigen libs hinzugebunden.</p>
<p>Allgemein vermute ich dass Du einfach</p>
<pre><code>gcc sendstream.cpp
</code></pre>
<p>aufrufst.<br />
Das ist zu wenig; Du musst ertmal alle Dateien kompilieren und dann die Module Binden.</p>
<pre><code>gcc -c sendstream.cpp
gcc -c COMPort.cpp
g++ sendstream.o ComPort.o -o a.out
</code></pre>
<p>Dessweiteren sollte man <strong>_NICHT_ &lt;string.h&gt;</strong> verwenden, schon gar nicht <strong>zusammen mit &lt;iostream&gt;</strong> verwenden;<br />
der neue header heisst einfach &lt;string&gt;</p>
<p>Grüsse</p>
<p>*this</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278787</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278787</guid><dc:creator><![CDATA[Gast++]]></dc:creator><pubDate>Fri, 04 May 2007 13:02:26 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 13:19:13 GMT]]></title><description><![CDATA[<p>Gast++ schrieb:</p>
<blockquote>
<p><strong>_NICHT_ &lt;string.h&gt;</strong> verwenden,</p>
</blockquote>
<p>aber das brauch ich doch für strcpy LOL</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278792</guid><dc:creator><![CDATA[kopierer]]></dc:creator><pubDate>Fri, 04 May 2007 13:19:13 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 13:19:30 GMT]]></title><description><![CDATA[<p>Es funktioniert danke,danke,danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278794</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278794</guid><dc:creator><![CDATA[Samuela]]></dc:creator><pubDate>Fri, 04 May 2007 13:19:30 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 13:32:33 GMT]]></title><description><![CDATA[<p>Der neue Header anstelle von string.h heißt cstring und sollte natürlich verwendet werden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278799</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278799</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 May 2007 13:32:33 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 14:41:52 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>Der neue Header anstelle</p>
</blockquote>
<p>Wenn Du schon Spass daran hast meine Beiträge zu lektorieren, dann bitte richtig - &quot;anstelle von &quot; war dan irgends zu lesen.</p>
<p>Stell mal eine Hypothese auf, warum die OP &lt;string.h&gt; inkludiert und dann lies das es nochmal durch.</p>
<p>Braunstein schrieb:</p>
<blockquote>
<p>von steht doch steht doch<br />
string.h heißt cstring und sollte natürlich verwendet werden.</p>
</blockquote>
<p>Von &quot;sollen&quot; kann da ohne weiteres gar keine Rede sein.<br />
Verwenden &quot;soll&quot; man wol eher &lt;string&gt; und auf C-Strings verzichten.</p>
<p>Dass ist immer das Problem mit Hobby-Lektoren in Foren; Aussagen aus dem Kontext zu reissen bringt ja vielleicht intellektuelle Genugtuung aber lösst nicht das Problem des OP.<br />
Mir erscheint das immer als Überkompensation von Kommunikationsd3efiziten der &quot;Lektoren&quot;. Es st kein Zeichen von Intelligenz etwas nicht zu verstehen.</p>
<p>Problemlösend arbeiten meist die Autoren, nicht die Lektoren.<br />
Lösungskompetenz wird zum Glück besser bezahlt.</p>
<p>Grüsse</p>
<p>*this</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278848</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278848</guid><dc:creator><![CDATA[Gast++]]></dc:creator><pubDate>Fri, 04 May 2007 14:41:52 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 16:00:04 GMT]]></title><description><![CDATA[<p>Es war folgendes zu lesen</p>
<blockquote>
<p>Dessweiteren sollte man _NICHT_ &lt;string.h&gt; verwenden, schon gar nicht zusammen mit &lt;iostream&gt; verwenden;<br />
der neue header heisst einfach &lt;string&gt;</p>
</blockquote>
<p>Daraus habe ich entnommen, dass du die Verwendung von string statt string.h empfiehlst (was falsch ist). Daraus ist nicht zu ersehen, dass du eigentlich die Verwendung von std::string statt char* meinst.<br />
Ich habe also nichts aus dem Kontext gerissen, du bist nur ziemlich empfindlich. <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/1278887</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278887</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 04 May 2007 16:00:04 GMT</pubDate></item><item><title><![CDATA[Reply to std::basic_string fehler on Fri, 04 May 2007 17:13:44 GMT]]></title><description><![CDATA[<p>Braunstein schrieb:</p>
<blockquote>
<p>Es war folgendes zu lesen</p>
<blockquote>
<p>Dessweiteren sollte man _NICHT_ &lt;string.h&gt; verwenden, schon gar nicht zusammen mit &lt;iostream&gt; verwenden;<br />
der neue header heisst einfach &lt;string&gt;</p>
</blockquote>
<p>Daraus habe ich entnommen, dass du die Verwendung von string statt string.h empfiehlst (was falsch ist).</p>
</blockquote>
<p>Nein, das ist sogar sehr richtig - die Verwendung von string ist der Verwendung von string.h vorzuziehen.<br />
Es sei denn man man Zeigerarithmetik.</p>
<p>Braunstein schrieb:</p>
<blockquote>
<p>Daraus ist nicht zu ersehen,</p>
</blockquote>
<p>Was Du ersehen kannst ist gewiss kein Massstab. Ganz offensichtlich nicht.</p>
<p>Braunstein schrieb:</p>
<blockquote>
<p>dass du eigentlich die Verwendung von std::string statt char* meinst.</p>
</blockquote>
<p>Du implizierst etwas albern.</p>
<p>Braunstein schrieb:</p>
<blockquote>
<p>Ich habe also nichts aus dem Kontext gerissen, du bist nur ziemlich empfindlich. <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>
</blockquote>
<p>Ist das Deine praktische Übung zu &quot;Polemik für Dummies&quot;?</p>
<p>Grüsse</p>
<p>*this</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1278911</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1278911</guid><dc:creator><![CDATA[Gast++]]></dc:creator><pubDate>Fri, 04 May 2007 17:13:44 GMT</pubDate></item></channel></rss>