Hello All,

  I still can not compile fcgi-test.cpp :-( with VC7
  
fast_cgi_attemtp error LNK2019: unresolved external symbol 
"__declspec(dllimport) const cgicc::FCgiIO::`vftable'" ([EMAIL PROTECTED]@@6B@) 
referenced in function "public: __thiscall cgicc::FCgiIO::FCgiIO(struct 
FCGX_Request &)" ([EMAIL PROTECTED]@@[EMAIL PROTECTED]@@@Z)
fast_cgi_attemtp error LNK2019: unresolved external symbol 
"__declspec(dllimport) public: virtual __thiscall cgicc::FCgiIO::~FCgiIO(void)" 
([EMAIL PROTECTED]@@[EMAIL PROTECTED]) referenced in function _main

 I have all the libraries included and both cgicc/fastcgi are working
 fine by themselves. But, when I try to redefine getenv method I get
 the linker error given above. What does it mean? I'm at lost why
 vftable can not be found...
 

#ifndef _fcgiio_h_
#define _fcgiio_h_ 

#ifdef __GNUG__
#  pragma interface
#endif

#include <ostream>
#include <string>
#include <map>
#include "fcgio.h"
#include "cgicc/CgiInput.h"

namespace cgicc {

  class CGICC_API FCgiIO : public CgiInput{
  public:    
    FCgiIO(FCGX_Request& request);
    FCgiIO(const FCgiIO& io);
    std::string getenv(const char *varName)
    {
      return fEnv[varName];
    }
  
  protected:
    FCGX_Request&                       fRequest;
    fcgi_streambuf                      fOutBuf;
    fcgi_streambuf                      fErrBuf;
    std::ostream                        fErr;
    std::map<std::string, std::string>  fEnv;
  };
  
}

#endif 

-- 
www.rol.ru
Best regards,
 Igor                          mailto:[EMAIL PROTECTED]



_______________________________________________
help-cgicc mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cgicc

Reply via email to