JPERKS1985
asked on
Including Boost library
I'm trying to include a boost header file.
#include <boost/algorithm/string.hp p>
Returns,
Error 1 error C1083: Cannot open include file: 'boost/algorithm/string.hp p': No such file or directory c:\users\null\documents\vi sual c++ projects\clientsocket\sock etmanager. cpp 9 1 ServerSocket
The boost header folder is right in with my other files,
C:\Users\NULL\Documents\Vi sual C++ Projects\ClientSocket\boos t
#include <boost/algorithm/string.hp
Returns,
Error 1 error C1083: Cannot open include file: 'boost/algorithm/string.hp
The boost header folder is right in with my other files,
C:\Users\NULL\Documents\Vi
how about
#include "boost/algorithm/string.hp p"
#include "boost/algorithm/string.hp
ASKER
When i use the installer and have the files located under program files/boost and include them i get an access denied error message.
>> When i use the installer and have the files located under program files/boost and include them i get an access denied error message.
What version of Windows/Visual Studio are you using? Do you have the most up-to-date service packs for Visual Studio (there are some issues with Vista/Windows 7 that require an update to work properly)?
I presume if you just open one of the header files in notepad you can?
What version of Windows/Visual Studio are you using? Do you have the most up-to-date service packs for Visual Studio (there are some issues with Vista/Windows 7 that require an update to work properly)?
I presume if you just open one of the header files in notepad you can?
ASKER
I'm using VS2010. I also can't create new C++ projects without getting errors and VS crashing. I'll check the service packs.
ASKER
Installing VS2010 SP1 didn't help
When I use
#include "boost/filesystem.hpp"
I get,
1 IntelliSense: cannot open source file "boost/config.hpp" c:\users\null\documents\vi sual c++ projects\clientsocket\boos t\filesyst em.hpp 15 1 ServerSocket
looks like it can load filesystem.hpp but can't find the dependencies. I've tried editing the includes in the other files by removing a slash or adding a slash and then it can load them but I do not want to have to do this.
When I use
#include "boost/filesystem.hpp"
I get,
1 IntelliSense: cannot open source file "boost/config.hpp" c:\users\null\documents\vi
looks like it can load filesystem.hpp but can't find the dependencies. I've tried editing the includes in the other files by removing a slash or adding a slash and then it can load them but I do not want to have to do this.
ASKER
ASKER
I've requested that this question be closed as follows:
Accepted answer: 0 points for JPERKS1985's comment #37997761
for the following reason:
Alternate source.
Accepted answer: 0 points for JPERKS1985's comment #37997761
for the following reason:
Alternate source.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>> The boost header folder is right in with my other files,
That's not where they should be. I suggest you install boost properly using the boostpro packages and then set up your include paths.
http://www.boostpro.com/download/