fatal error C1083: Cannot open include file: 'boost/lexical_cast.hpp': No such file or directory

I am trying to compile a project using VC8 Express Edition

I have downloaded boost and the file in question can be found in the dir below

C:\Program Files\boost\boost_1_34_1\boost

I have added this dir to the addtional includes of the project and i added it in the Inlude Dirs of the IDE but I am still getting this error

fatal error C1083: Cannot open include file: 'boost/lexical_cast.hpp': No such file or directory

Any thing I done wrong here ?

Thx
LVL 19
http:// thevpn.guruAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Infinity08Commented:
Did you add this dir :

        C:\Program Files\boost\boost_1_34_1\

or this dir :

        C:\Program Files\boost\boost_1_34_1\boost\

Try the first.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
evilrixSenior Software Engineer (Avast)Commented:
>> I have added this dir to the addtional includes of the project
I8's suggestion above is correct but also, make sure you add it to the configuration too (debug & release). It's easy to add it to the wrong one and not be able to fathom why it doesn't build! I know, I've done it! :)
0
evilrixSenior Software Engineer (Avast)Commented:
>>add it to the configuration too
to the CORRECT configuration
0
alb66Commented:
in your cpp file write

#include "lexical_cast.hpp"

instead of

#include "boost\lexical_cast.hpp"
0
evilrixSenior Software Engineer (Avast)Commented:
@alb66

Actually, that's not the way to use the boost library's... they are designed to be used in the way I8 has shown, if you try to do it the way you suggest boost's self includes will fail.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.