FastCGI with std::stringstream

Neil Rao <[email protected]> Fri, 19 Jul 2013 14:42:57 -0500
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <CAA0gXb9_rpheSnwERAroHfhbF3XTAGxjzNmPJaXZQ4TGjjPeUg@mail.gmail.com>
--===============7788861316590839067==
Content-Type: multipart/alternative; boundary=485b397dd10594cf1b04e1e288c3

--485b397dd10594cf1b04e1e288c3
Content-Type: text/plain; charset=ISO-8859-1

Hello,

It seems I cannot use FastCGI and stringstream in the same project, despite
the examples.

The moment I include the following:

#include "fcgio.h"
#include "fcgi_config.h"

I get the following error:

error LNK2001: unresolved external symbol "__declspec(dllimport) public:
class std::basic_istream<char,struct std::char_traits<char> > & __thiscall
std::basic_istream<char,struct std::char_traits<char>
>::seekg(__int64,int)" (__imp_?seekg@?$basic_istream@DU?$char_traits@D@std@
@@std@@QAEAAV12@_JH@Z


I also have the following other headers (could something be conflicting?):

#include <string>
#include <curl/curl.h>
#include <mimetic.h> // a free mime library
#include <sstream>


This is my code:

std::stringstream ss;
ss << somedata;
ss.seekg(0, std::ios::end); // error here, along with tellg() and read()


I'd appreciate any advice that will point me in the right direction.


Thank you,

Neil

--485b397dd10594cf1b04e1e288c3
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div style>Hello,</div><div style><br></div>It seems I can=
not use FastCGI and stringstream in the same project, despite the examples.=
<div><br></div><div style>The moment I include the following:</div><div sty=
le>
<br></div><div style><div>#include &quot;fcgio.h&quot;</div><div>#include &=
quot;fcgi_config.h&quot;</div><div><br></div><div style>I get the following=
 error:</div><div style><br></div><div style><div>error LNK2001: unresolved=
 external symbol &quot;__declspec(dllimport) public: class std::basic_istre=
am&lt;char,struct std::char_traits&lt;char&gt; &gt; &amp; __thiscall std::b=
asic_istream&lt;char,struct std::char_traits&lt;char&gt; &gt;::seekg(__int6=
4,int)&quot; (__imp_?seekg@?$basic_istream@DU?$char_traits@D@std@@@std@@QAE=
AAV12@_JH@Z<br>
</div></div><div style><br></div><div style><br></div><div style>I also hav=
e the following other headers (could something be conflicting?):</div><div =
style><br></div><div style><div>#include &lt;string&gt;</div><div>#include =
&lt;curl/curl.h&gt;</div>
<div>#include &lt;mimetic.h&gt; // a free mime library</div><div>#include &=
lt;sstream&gt;</div><div><br></div><div><br></div><div style>This is my cod=
e:</div><div style><br></div><div style><div>std::stringstream ss;</div>
<div>ss &lt;&lt; somedata;<br></div><div>ss.seekg(0, std::ios::end); // err=
or here, along with tellg() and read()</div><div><br></div><div><br></div><=
div style>I&#39;d appreciate any advice that will point me in the right dir=
ection.</div>
<div style><br></div><div style><br></div><div style>Thank you,</div><div s=
tyle><br></div><div style>Neil</div></div></div></div></div>

--485b397dd10594cf1b04e1e288c3--

--===============7788861316590839067==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
FastCGI-developers mailing list
FastCGI-developers-xGejAJT2w6xVgU18Zptdi0EOCMrvLtNR@public.gmane.org
http://mailman.fastcgi.com/mailman/listinfo/fastcgi-developers

--===============7788861316590839067==--