Newbie problems resolving header paths
I downloaded 1_33_1 and it built and installed. Actually, I'm still not
sure what is meant by "install" in the docs. Does something happen than
copying a bunch of files to C:\Boost ?
VC71 is having trouble resolving paths to the headers. I have:
In the project properties, Additional Include Directories:
C:\Boost\include\boost-1_33_1;
In my .cpp file, I use, for example:
#include
DC wrote:
I downloaded 1_33_1 and it built and installed. Actually, I'm still not sure what is meant by "install" in the docs. Does something happen than copying a bunch of files to C:\Boost ?
It should have also compiled and created libs and dlls.
VC71 is having trouble resolving paths to the headers. I have:
In the project properties, Additional Include Directories: C:\Boost\include\boost-1_33_1;
In my .cpp file, I use, for example: #include
I still get:
C:\Dev\VS2003\MyProject\Engine.h(3): fatal error C1083: Cannot open include file: 'boost/date_time/gregorian/gregorian.hpp': No such file or directory
Hoping I'm overlooking something simple here. Thanks!
Can you manually navigate to: C:\Boost\include\boost-1_33_1\boost/date_time/gregorian is gregorian.hpp there? What was the command line you used to do the install? Should be: bjam "-sTOOLS=vc-7_1" install exactly with the same case. Jeff Flinn
Thanks for your help Jeff.
Can you manually navigate to:
C:\Boost\include\boost-1_33_1\boost/date_time/gregorian
is gregorian.hpp there?
Yes, that works and gregorian.hpp is present. In fact, I can also right-click on the #include line in the .cpp file and choose "Open Document", and VS will open the file! So VS can find it in the editor. It's just when it builds the project that it can't seem to find it.
What was the command line you used to do the install?
Should be:
bjam "-sTOOLS=vc-7_1" install
exactly with the same case.
Yes, that's precisely what I used. And it did build all the libs and dlls, and copy all the header files, etc. into the C:\Boost\include \boost-1_33_1 folder structure. That part seemed to go smoothly. The only warning was about not having perl installed. It appears perl is not a requirement, correct? I'm totally perplexed by this. Is there anything more that needs to be done, other than what I've described above? #defines, env vars? If not, maybe I'll start over from the beginnning. - JC
Resolved! Solution had multiple projects and just one of them didn't point to boost in the "Additional Include Directories". Simple things, sometimes. Thanks again Jeff! - JC
I use vs2003 toolkit,and met this question before ,my reason for this is
path error,you should make boost 'include ' dir in vc2003 and system
enviroment
-----邮件原件-----
发件人: boost-users-bounces@lists.boost.org
[mailto:boost-users-bounces@lists.boost.org] 代表 DC
发送时间: 2006年11月17日 14:19
收件人: boost-users@lists.boost.org
主题: [Boost-users] Newbie problems resolving header paths
I downloaded 1_33_1 and it built and installed. Actually, I'm still not
sure what is meant by "install" in the docs. Does something happen than
copying a bunch of files to C:\Boost ?
VC71 is having trouble resolving paths to the headers. I have:
In the project properties, Additional Include Directories:
C:\Boost\include\boost-1_33_1;
In my .cpp file, I use, for example:
#include
participants (4)
-
DC
-
JC
-
Jeff F
-
lockgau