Boost in Visual Studio 2010 IntelliSense Error

I would like to see if you can orient me.

It happens that I compiled and referenced boost libraries to use them with Visual Studio 2010. When I create my test project, I get these two IntelliSense errors

1   IntelliSense: #error directive: "Macro BOOST_LIB_NAME not set (internal error)" c:\boost_1_43_0\boost\config\auto_link.hpp

2   IntelliSense: #error directive: "some required macros where not defined (internal logic error)."    c:\boost_1_43_0\boost\config\auto_link.hpp

Check header file auto_link.hpp first error on this line

#ifndef BOOST_LIB_NAME
#  error "Macro BOOST_LIB_NAME not set (internal error)"
#endif

Tracking the definition BOOST_LIB_NAME, it seems to be defined in config.hpp using boost_regex, the code of which I include below

#if !defined(BOOST_REGEX_NO_LIB) && !defined(BOOST_REGEX_SOURCE) && !defined(BOOST_ALL_NO_LIB) && defined(__cplusplus)
#  define BOOST_LIB_NAME boost_regex
#  if defined(BOOST_REGEX_DYN_LINK) || defined(BOOST_ALL_DYN_LINK)
#     define BOOST_DYN_LINK
... more code

and strangely, when I point to BOOST_LIB_NAME, it determines BOOST_LIB_NAMEand IntelliSense errors disappear.

, Boost: Regex - Intellisense ; , IntelliSense , -, config.hpp BOOST_LIB_NAME.

.

,

+5
1

Visual Studio IntelliSense ++ , ( , , t, , ).

+5

All Articles