Re: Help? Windows version

Quintin Connell <[email protected]> Wed, 13 Nov 2002 11:17:00 +0200 (SAST)
Newsgroups gmane.comp.gcc.cgicc.general
Message-ID <[email protected]>
Robert,

You need to patch the following into cgiInput.cpp

STDNS string
CGICCNS CgiInput::getenv(const char *varName)
{
	char *var = 
// MSVC C++ lib problem, <cstdlib> is not in std namespace
#if defined(_MSC_VER) && (_MSC_VER < 1201) // hopefully they get it right next 
time
	:: // don't call the member function
#else 
	STDNS 
#endif
	getenv(varName);
	return (var == 0) ? "" : var;
}

That should do the trick. Let me know.

Quintin

Quoting "Robert A. Jenkin" <[email protected]>:

> Has anyone be able to get version 3.2.1 of cgicc to compile on Windows
> using MS VC++ 6.0?
>  
> Thanks...
>  
>  
> Robert Jenkin
> [email protected]
>