For more information, see http://www.dup2.org/node/754. I just added the include and Lib directories of Apache 2.2 to the compilation link parameters.
CL/ID: apache2.2include/MD/D "Win32"/C fcgi_buf.c
CL/ID: apache2.2include/MD/D "Win32"/C fcgi_config.c
CL/ID: apache2.2include/MD/D "Win32"/C fcgi_pm.c
CL/ID: apache2.2include/MD/D "Win32"/C fcgi_protocol.c
CL/ID: apache2.2include/MD/D "Win32"/C fcgi_util.c
CL/ID: apache2.2include/MD/D "Win32"/C mod_fastcgi.c
Link/libpath: apache2.2lib/DLL mod_fastcgi.obj fcgi_util.obj fcgi_protocol.obj fcgi_pm.obj fcgi_config.obj fcgi_buf.obj libhttpd. Lib libapr-1.lib ws2_32.lib
Or
CL/ID: apache2.2include/nologo/MD/W3/O2/D "Win32"/D "ndebug"/D "_ console"/D "shared_module"/FD/C *. c
Link/libpath: apache2.2lib/dll/nologo/subsystem: console/Incremental: No supported fcgi_util.obj ready fcgi_pm.obj fcgi_config.obj fcgi_buf.obj libhttpd. Lib libapr-1.lib ws2_32.lib
If the r6034 error occurs during loadmodule, you may need
Mt.exe-manifest mod_fastcgi.dll.manifest-outputresource: mod_fastcgi.dll; 2
For details, refer
Http://msdn2.microsoft.com/zh-cn/library/ms235560 (vs.80). aspx
Http://msdn2.microsoft.com/zh-cn/library/ms235591 (vs.80). aspx