|
Boost Users : |
From: joh3_at_[hidden]
Date: 2008-02-07 15:02:00
I am sure this will get me slapping my head with my own stuidity, can some one
tell me why i am getting this message when i try to compile my application..
/usr/include/boost/date_time/c_time.hpp:49:70: error: macro "localtime" passed 2
arguments, but takes just 1
/usr/include/boost/date_time/c_time.hpp:57:67: error: macro "gmtime" passed 2
arguments, but takes just 1
In file included from /usr/include/boost/date_time/gregorian/gregorian_types.hpp:26,
from /usr/include/boost/date_time/gregorian/gregorian.hpp:20,
from ./call_asf_import.h:25,
i am using a ubuntu linux box with gcc
>Target: x86_64-linux-gnu
>Configured with: ../src/configure -v
>--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
>--enable-shared --with-system-zlib --libexecdir=/usr/lib
>--without-included-gettext --enable-threads=posix --enable-nls
>--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
>--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
>--enable-mpfr --enable-checking=release x86_64-linux-gnu
>Thread model: posix
>gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
i include the following boost lines in the header...
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp> // includes path.hpp
#include <boost/filesystem/convenience.hpp> // includes all needed
//Boost.Filesystem declarations
#include "boost/date_time/gregorian/gregorian.hpp"
#include "boost/date_time/posix_time/posix_time.hpp"
#include "boost/date_time/local_time/local_time.hpp"
....
and the gcc line looks like this....
g++ -g -ggdb -Wall -fmessage-length=0 -fPIC -DPIC -fexceptions
-I/usr/include/mysql -DBIG_JOINS=1 -I/usr/include -I/usr/include/libxml++-2.6
-I/usr/lib/libxml++-2.6/include -I/usr/include/libxml2 -I/usr/include/glibmm-2.4
-I/usr/lib/glibmm-2.4/include -I/usr/include/sigc++-2.0
-I/usr/lib/sigc++-2.0/include -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS
-DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -DPERL_NO_SHORT_NAMES -pthread
-fmessage-length=0 -c call_asf_import.cxx
-I/export/mirror/joes-stuff/PS_code//include/external
-I/export/mirror/joes-stuff/PS_code//include/native
-I/export/mirror/joes-stuff/PS_code//obj
-I/export/mirror/joes-stuff/PS_code//src -I . -I/usr/include/boost
-I/usr/include/stlsoft -I/usr/include/mysql
any help would be greatly appreciated.
Cheers
Joe
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