
Christopher Kohlhoff wrote:
I suspect it's due to winsock.h being included before the asio header files. What are the headers you include from DHCP.cpp, in order?
#include "windows.h" #include <iostream> #include <iterator> #include <fstream> #include <boost/program_options.hpp> If I comment out "windows.h" I get: ------ Build started: Project: DHCP, Configuration: Debug Win32 ------ Compiling... DHCP.cpp Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately Assuming _WIN32_WINNT=0x0500 (i.e. Windows 2000 target) e:\nan\boost\source_control\cvs\boost\boost\boost\asio\detail\handler_dispatch_helpers.hpp(39) : fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 2701) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information Build log was saved at "file://e:\nan\C++\Sandbox\Dhcp\Debug\BuildLog.htm" DHCP - 1 error(s), 0 warning(s) ---------------------- Done ---------------------- Build: 0 succeeded, 1 failed, 0 skipped