Re: compiling error on VC6/W2K
"Alexander J. Oss" <[email protected]> Thu, 8 Aug 2002 21:04:57 -0400
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Message-ID | <008401c23f40$c7b3c760$0101a8c0@puter> |
Unfortunately, getenv() is in namespace std, when <cstdlib> is included. VC6 bug/non-conformance? Try removing the STDNS in front of getenv() call? ----- Original Message ----- From: "Michael Huang" <[email protected]> To: <[email protected]> Sent: Thursday, August 08, 2002 12:38 PM Subject: [help-cgicc] compiling error on VC6/W2K Hi all, I downloaded cgicc v3.2.1 and was trying compile it using VC6 running on W2K Pro, and got following error message. CgiInput.cpp c:\temp\cgicc-3.2.1\cgicc\cgiinput.cpp(48) : error C2039: 'getenv' : is not a member of 'std' c:\temp\cgicc-3.2.1\cgicc\cgiinput.cpp(48) : error C2440: 'initializing' : cannot convert from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'char *' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called Error executing cl.exe. Any idea or fix? TIA. Michael _______________________________________________ help-cgicc mailing list [email protected] http://mail.gnu.org/mailman/listinfo/help-cgicc