Boost logo

Boost Users :

From: Vikrant Rathore (vikrant_at_[hidden])
Date: 2004-02-02 20:41:22


Hi Dave,

Thanks for the reponse. Even when I invoke the command from the
command prompt it throws error and it seems it can not find the header files
for c++.

I have tried every way including defining the location of the header file in
INCLUDES.

It throws following errors when i type the same command on command
prompt.

C:\projects\boost>c:\dev-cpp\bin\g++ -c -Wall -ftemplate-depth-100 -
DBOOST_DA
TE_TIME_POSIX_TIME_STD_CONFIG -DBOOST_ALL_DYN_LINK=1 -g -
O0 -fno-inline -mno-cy
gwin -I"bin\boost\libs\date_time\build" -I "C:\projects\boost" -I "c:\dev-cpp
\include" -o
"bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\gr
eg_month.obj"
"C:/projects/boost/libs/date_time/build/../src/gregorian/greg_mon
th.cpp"

In file included from C:/projects/boost/boost/config.hpp:40,
                 from C:/projects/boost/boost/shared_ptr.hpp:18,
                 from
C:/projects/boost/boost/date_time/gregorian/greg_month.hpp
:14,
                 from C:/projects/boost/libs/date_time/src/gregorian/greg_month.
cpp:14:
C:/projects/boost/boost/config/select_stdlib_config.hpp:20:19: utility: No
such
file or directory
In file included from C:/projects/boost/boost/shared_ptr.hpp:27,
                 from
C:/projects/boost/boost/date_time/gregorian/greg_month.hpp
:14,
                 from C:/projects/boost/libs/date_time/src/gregorian/greg_month.
cpp:14:
C:/projects/boost/boost/detail/shared_count.hpp:35:61: memory: No such
file or d
irectory
C:/projects/boost/boost/detail/shared_count.hpp:36:41: functional: No such
file
or directory
C:/projects/boost/boost/detail/shared_count.hpp:37:46: exception: No such
file o
r directory
C:/projects/boost/boost/detail/shared_count.hpp:38:46: new: No such file or
dire
ctory
C:/projects/boost/boost/detail/shared_count.hpp:39:61: typeinfo: No such
file or
 directory
C:/projects/boost/boost/detail/shared_count.hpp:40:43: cstddef: No such file
or
directory
In file included from C:/projects/boost/boost/shared_ptr.hpp:27,
                 from
C:/projects/boost/boost/date_time/gregorian/greg_month.hpp
:14,
                 from C:/projects/boost/libs/date_time/src/gregorian/greg_month.
cpp:14:
C:/projects/boost/boost/detail/shared_count.hpp:74: `exception' is not a
class
   or namespace
C:/projects/boost/boost/detail/shared_count.hpp: In member function `virtual
   void* boost::detail::sp_counted_base_impl<P, D>::get_deleter(const
   std::type_info&)':
C:/projects/boost/boost/detail/shared_count.hpp:270: must #include
<typeinfo>
   before using typeid
C:/projects/boost/boost/detail/shared_count.hpp: At global scope:
C:/projects/boost/boost/detail/shared_count.hpp:367: parse error before `<'
   token
C:/projects/boost/boost/detail/shared_count.hpp:378: ISO C++ forbids
defining
   types within return type
C:/projects/boost/boost/detail/shared_count.hpp:378: destructors must be
member

   functions
C:/projects/boost/boost/detail/shared_count.hpp:378: return type
specification
   for destructor invalid
C:/projects/boost/boost/detail/shared_count.hpp: In function `void
   boost::detail::shared_count()':
C:/projects/boost/boost/detail/shared_count.hpp:379: `pi_' undeclared (first
   use this function)
C:/projects/boost/boost/detail/shared_count.hpp:379: (Each undeclared
   identifier is reported only once for each function it appears in.)
C:/projects/boost/boost/detail/shared_count.hpp: At global scope:
C:/projects/boost/boost/detail/shared_count.hpp:385: parse error before
`const'
C:/projects/boost/boost/detail/shared_count.hpp:385: ISO C++ forbids
   declaration of `shared_count' with no type
C:/projects/boost/boost/detail/shared_count.hpp: In function `int
   boost::detail::shared_count(...)':
C:/projects/boost/boost/detail/shared_count.hpp:385: `r' undeclared (first
use
   this function)
C:/projects/boost/boost/detail/shared_count.hpp:389: only constructors take
   base initializers
C:/projects/boost/boost/detail/shared_count.hpp:389: confused by earlier
errors,
 bailing out

On 2 Feb 2004 at 7:37, David Abrahams wrote:

> "Vikrant Rathore" <vikrant_at_[hidden]> writes:
>
> > bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg_
> > month .obj
> >
> >
> > c:\dev-cpp\bin\g++ -c -Wall -ftemplate-depth-100 -
> > DBOOST_DATE_TIME_POSIX_TIME_STD_CONFIG -
> > DBOOST_ALL_DYN_LINK=1 -g -O0 -fno-inline -mno-cygwin -
> > I"bin\boost\libs\date_time\build" -I "C:\projects\boost" -I
> > "c:\dev-cpp\include" -o
> > "bin\boost\libs\date_time\build\boost_date_time.dll\mingw\debug\greg
> > _mont h.obj"
> > "C:/projects/boost/libs/date_time/build/../src/gregorian/greg_month.
> > cpp"
> >
> >
> > ...failed gcc-C++-action
>
> That's really the only error message you get, with no complaint issued
> from gcc itself?
>
> What happens when you invoke the g++ command shown above from the
> command prompt?
>
> --
> Dave Abrahams
> Boost Consulting
> www.boost-consulting.com
>
> _______________________________________________
> 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