Boost logo

Boost Users :

Subject: [Boost-users] Illegal instruction with Boost program options and Visual Studio 2008
From: Basil Crow (me_at_[hidden])
Date: 2010-06-07 18:50:03


Dear list, I am having some trouble using the Boost program options library with Visual Studio 2008 on Windows 7 (64-bit). My program is as follows: #include <boost/program_options.hpp> int wmain(int argc, wchar_t* argv[]) { boost::program_options::basic_command_line_parser<wchar_t> parser(argc, argv); return 1; } I compiled and linked the above as follows: > cl testcase.cpp /c /I "C:\dev\boost-1.42.0\include" /EHsc /Zi Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.21022.08 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. testcase.cpp > link testcase.obj /LIBPATH:"C:\dev\boost-1.42.0\lib" /DEBUG Microsoft (R) Incremental Linker Version 9.00.21022.58 Copyright (C) Microsoft Corporation. All rights reserved. When running the program, on line 504 of function_template.hpp I encounter an "Unhandled exception at 0x0018ffc4 in testcase.exe: 0xC000001D: Illegal Instruction." Please advise me as to how I can resolve this issue. Thank you, Basil


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net