[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [help-cgicc] compiling error on VC6/W2K
From: |
Alexander J. Oss |
Subject: |
Re: [help-cgicc] compiling error on VC6/W2K |
Date: |
Thu, 8 Aug 2002 21:04:57 -0400 |
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" <address@hidden>
To: <address@hidden>
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
address@hidden
http://mail.gnu.org/mailman/listinfo/help-cgicc