Boost logo

Boost Users :

From: nick_at_[hidden]
Date: 2005-03-23 10:09:15


In the VC 2003 ide add the following path

C:\BOOST\BOOST_1_32_0

this should solve you missing include file problems.

On Wed, 23 Mar 2005 06:24:28 +0200
  Ioannis Vranos <ivr_at_[hidden]> wrote:
> I installed Boost 1.32 to VS 2003 and MINGW 3.4.2 (got
>80 failures for the second), and now I am trying to use
>it with both but the compiler's can't find the boost
>header files by their own. For example the source code:
>
> #include <boost/static_assert.hpp>
>
> int main()
> {
> int i=1;
>
> BOOST_STATIC_ASSERT(i==1);
> }
>
>
> produces:
>
>
> C:\c>g++ temp.cpp -o temp.exe
> temp.cpp:1:35: boost/static_assert.hpp: No such file or
>directory
> temp.cpp: In function `int main()':
> temp.cpp:7: error: `BOOST_STATIC_ASSERT' undeclared
>(first use this function)
> temp.cpp:7: error: (Each undeclared identifier is
>reported only once for each fu
> nction it appears in.)
>
> C:\c>cl /EHsc temp.cpp
> Microsoft (R) 32-bit C/C++ Optimizing Compiler Version
>13.10.3077 for 80x86
> Copyright (C) Microsoft Corporation 1984-2002. All
>rights reserved.
>
> temp.cpp
> temp.cpp(1) : fatal error C1083: Cannot open include
>file: 'boost/static_assert.
> hpp': No such file or directory
>
> C:\c>
>
>
> I tried everything I could think like adding the
>c:\Boost folder and subfolders in PATH environment
>variable, or explicitly #include the file with its entire
>path, with no result.
>
> What am I missing here?
>
>
> Thanks in advance.
>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users


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