Windows上でcgiccを使用して「概念の証明」を構築する必要があります。しかし、現在私はcgiccを構築することができません。現在のcgicc v3.2.9のリリースは、MinGW(gcc v4.5.0/v3.4.5)やCygwin(gcc v4.3.4-3)では作成されません。 MinGWのでGCC v3.4.5とautomakeのを使用することによりgnu cgi(cgicc)がMinGW/Cygwinを使用してWindowsでgccとコンパイルしない
は、私が得た:GCC v4.3.4とautomakeのを使用して
HTMLAttributeList.cpp:51: internal compiler error: in rest_of_handle_final, at toplev.c:2067 Please submit a full bug report, with preprocessed source if appropriate.
はCygwin用に提供します:
In file included from CgiEnvironment.cpp:36: ../cgicc/CgiEnvironment.h:52: error: explicit instantiation of 'class std::vector<cgicc::HTTPCookie, std::allocator<cgicc::HTTPCookie> >' in namespace 'cgicc' which does not enclose namespace 'std')
とにおけるGCC v4.5.0のためにMinGWの:
../cgicc/CgiEnvironment.h:52:33: error: explicit instantiation of 'class std::vector<cgicc::HTTPCookie>' in namespace 'cgicc' (which does not enclose namespace 'std')
AutomakeとAutoconfスクリプトを無視しようとしました。含まれている53行目に51:CgiEnvironment.hを
explicit instantiation of 'class std::vector<cgicc::HTTPCookie, std::allocator<cgicc::HTTPCookie> >' in namespace 'cgicc' (which does not enclose namespace 'std') CgiEnvironment.h /cgicc/cgicc line 52
:
-DHAVE_CONFIG_H -DWIN32 -I.. -Wall -W -pedantic -g -DDLL_EXPORT -DPIC -DCGICC_EXPORTS
しかし、再び私が得た:私は(私もコード::ブロックを試してみました)良いと考えコンパイラスイッチを使用するためのEclipse CDTを設定しましたifdef WIN32:
#include <string>
#include <vector>
#include <cstdlib>
namespace cgicc {
...
#ifdef WIN32
template class CGICC_API std::vector<HTTPCookie>;
#endif
...
}
何が問題になるのですか?助言がありますか?
これは、影響を受けるクラスファイルのヘッダーファイルに含まれるCgiDefs.hファイルで行われます。ちなみに、コードタグを使用してこのテキストボックスにコードを追加するにはどうすればよいですか?
– kirsche40