Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2004-02-03 07:01:15


> I'm still getting undefined symbols attempting to use date_time library
> with Visual Studio.NET 2003

Works fine for me with current cvs-release-branch.

Can you try:

1) define BOOST_LIB_DIAGNOSTIC and verify that the name of the date_time lib
that will be linked to gets printed out.
2) If that fails, pre-process the source and verify that
boost/config/auto_link.hpp is getting included.
3) If it's not then why not? Are you defining BOOST_ALL_NO_LIB or
BOOST_DATE_TIME_NO_LIB ? Are your include paths correctly set up?

However I do see some pesky warnings from vc7.1 that Jeff may want to try
and suppress in future (reproduced below).

John.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Compiling...

scrap.cpp

c:\data\boost\release\boost\boost\date_time\posix_time\conversion.hpp(26) :
warning C4244: 'argument' : conversion from 'time_t' to 'long', possible
loss of data

c:\data\boost\release\boost\boost\date_time\time_system_counted.hpp(57) :
warning C4244: 'initializing' : conversion from
'boost::date_time::counted_time_rep<config>::int_type' to
'boost::date_time::gregorian_calendar_base<ymd_type_,date_int_type_>::date_i
nt_type', possible loss of data

with

[

config=boost::posix_time::millisec_posix_time_system_config

]

and

[

ymd_type_=boost::gregorian::greg_year_month_day,

date_int_type_=boost::date_time::int_adapter<unsigned long>::int_type

]

c:\data\boost\release\boost\boost\date_time\time_system_counted.hpp(52) :
while compiling class-template member function
'boost::date_time::counted_time_rep<config>::date_type
boost::date_time::counted_time_rep<config>::date(void) const'

with

[

config=boost::posix_time::millisec_posix_time_system_config

]

c:\data\boost\release\boost\boost\date_time\time_system_counted.hpp(111) :
see reference to class template instantiation
'boost::date_time::counted_time_rep<config>' being compiled

with

[

config=boost::posix_time::millisec_posix_time_system_config

]

c:\data\boost\release\boost\boost\date_time\time.hpp(52) : see reference to
class template instantiation
'boost::date_time::counted_time_system<time_rep>' being compiled

with

[

time_rep=boost::posix_time::int64_time_rep

]

c:\data\boost\release\boost\boost\date_time\posix_time\ptime.hpp(32) : see
reference to class template instantiation
'boost::date_time::base_time<T,time_system>' being compiled

with

[

T=boost::posix_time::ptime,

time_system=boost::posix_time::posix_time_system

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4511:
'boost::detail::lexical_stream<Target,Source>' : copy constructor could not
be generated

with

[

Target=unsigned short,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=unsigned short,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\date_parsing.hpp(106) : see
reference to function template instantiation 'Target
boost::lexical_cast<unsigned short,Type>(Source)' being compiled

with

[

Target=unsigned short,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\gregorian\parsers.hpp(24) : see
reference to function template instantiation 'date_type
boost::date_time::parse_date<boost::gregorian::date>(const std::string
&,int)' being compiled

with

[

date_type=boost::gregorian::date

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4512:
'boost::detail::lexical_stream<Target,Source>' : assignment operator could
not be generated

with

[

Target=unsigned short,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4511:
'boost::detail::lexical_stream<Target,Source>' : copy constructor could not
be generated

with

[

Target=int,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=int,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(42) : see
reference to function template instantiation 'Target
boost::lexical_cast<int,Type>(Source)' being compiled

with

[

Target=int,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\posix_time\time_parsers.hpp(27)
: see reference to function template instantiation 'time_duration
boost::date_time::parse_delimited_time_duration<boost::posix_time::time_dura
tion>(const std::string &)' being compiled

with

[

time_duration=boost::posix_time::time_duration

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4512:
'boost::detail::lexical_stream<Target,Source>' : assignment operator could
not be generated

with

[

Target=int,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4511:
'boost::detail::lexical_stream<Target,Source>' : copy constructor could not
be generated

with

[

Target=boost::int64_t,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=boost::int64_t,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(59) : see
reference to function template instantiation 'Target
boost::lexical_cast<boost::int64_t,Type>(Source)' being compiled

with

[

Target=boost::int64_t,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4512:
'boost::detail::lexical_stream<Target,Source>' : assignment operator could
not be generated

with

[

Target=boost::int64_t,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(131) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\lexical_cast.hpp(127) : while compiling
class-template member function
'boost::detail::lexical_stream<Target,Source>::lexical_stream(void)'

with

[

Target=unsigned short,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=unsigned short,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\date_parsing.hpp(106) : see
reference to function template instantiation 'Target
boost::lexical_cast<unsigned short,Type>(Source)' being compiled

with

[

Target=unsigned short,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(133) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\lexical_cast.hpp(131) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\lexical_cast.hpp(127) : while compiling
class-template member function
'boost::detail::lexical_stream<Target,Source>::lexical_stream(void)'

with

[

Target=int,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=int,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(42) : see
reference to function template instantiation 'Target
boost::lexical_cast<int,Type>(Source)' being compiled

with

[

Target=int,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(133) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\lexical_cast.hpp(131) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\lexical_cast.hpp(127) : while compiling
class-template member function
'boost::detail::lexical_stream<Target,Source>::lexical_stream(void)'

with

[

Target=boost::int64_t,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=boost::int64_t,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(59) : see
reference to function template instantiation 'Target
boost::lexical_cast<boost::int64_t,Type>(Source)' being compiled

with

[

Target=boost::int64_t,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(133) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\date_time\date_names_put.hpp(139) :
warning C4100: 'wd' : unreferenced formal parameter

c:\data\boost\release\boost\boost\date_time\date_names_put.hpp(140) : while
compiling class-template member function 'void
boost::date_time::date_names_put<Config>::do_put_weekday_short(boost::date_t
ime::date_names_put<Config>::iter_type
&,boost::date_time::date_names_put<Config>::weekday_enum) const'

with

[

Config=boost::gregorian::greg_facet_config

]

c:\data\boost\release\boost\boost\date_time\date_formatting_locales.hpp(219)
: see reference to class template instantiation
'boost::date_time::date_names_put<Config>' being compiled

with

[

Config=boost::gregorian::greg_facet_config

]

c:\data\boost\release\boost\boost\date_time\date_formatting_locales.hpp(210)
: while compiling class-template member function 'void
boost::date_time::ostream_date_formatter<date_type,facet_type,charT>::date_p
ut(const date_type
&,boost::date_time::ostream_date_formatter<date_type,facet_type,charT>::ostr
eam_type &)'

with

[

date_type=boost::gregorian::date,

facet_type=boost::gregorian::greg_base_facet,

charT=char

]

c:\data\boost\release\boost\boost\date_time\gregorian\greg_facet.hpp(48) :
see reference to class template instantiation
'boost::date_time::ostream_date_formatter<date_type,facet_type,charT>' being
compiled

with

[

date_type=boost::gregorian::date,

facet_type=boost::gregorian::greg_base_facet,

charT=char

]

c:\data\boost\release\boost\boost\date_time\time_formatting_streams.hpp(76)
: see reference to function template instantiation
'std::basic_ostream<_Elem,_Traits> &boost::gregorian::operator
<<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const
boost::gregorian::date &)' being compiled

with

[

_Elem=char,

_Traits=std::char_traits<char>

]

c:\data\boost\release\boost\boost\date_time\time_formatting_streams.hpp(74)
: while compiling class-template member function 'void
boost::date_time::ostream_time_formatter<time_type,charT>::time_put(const
time_type
&,boost::date_time::ostream_time_formatter<time_type,charT>::ostream_type
&)'

with

[

time_type=boost::posix_time::ptime,

charT=char

]

c:\data\boost\release\boost\boost\date_time\posix_time\time_formatters.hpp(2
26) : see reference to class template instantiation
'boost::date_time::ostream_time_formatter<time_type,charT>' being compiled

with

[

time_type=boost::posix_time::ptime,

charT=char

]

\data\boost\develop\boost\msvc\regex\scrap\scrap.cpp(14) : see reference to
function template instantiation 'std::basic_ostream<_Elem,_Traits>
&boost::posix_time::operator
<<<char,std::char_traits<char>>(std::basic_ostream<_Elem,_Traits> &,const
boost::posix_time::ptime &)' being compiled

with

[

_Elem=char,

_Traits=std::char_traits<char>

]

c:\data\boost\release\boost\boost\date_time\date_names_put.hpp(139) :
warning C4100: 'oitr' : unreferenced formal parameter

c:\data\boost\release\boost\boost\date_time\date_names_put.hpp(142) :
warning C4100: 'wd' : unreferenced formal parameter

c:\data\boost\release\boost\boost\date_time\date_names_put.hpp(143) : while
compiling class-template member function 'void
boost::date_time::date_names_put<Config>::do_put_weekday_long(boost::date_ti
me::date_names_put<Config>::iter_type
&,boost::date_time::date_names_put<Config>::weekday_enum) const'

with

[

Config=boost::gregorian::greg_facet_config

]

c:\data\boost\release\boost\boost\date_time\date_names_put.hpp(142) :
warning C4100: 'oitr' : unreferenced formal parameter

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4511:
'boost::detail::lexical_stream<Target,Source>' : copy constructor could not
be generated

with

[

Target=short,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=short,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(138) : see
reference to function template instantiation 'Target
boost::lexical_cast<short,Type>(Source)' being compiled

with

[

Target=short,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(172) : see
reference to function template instantiation 'time_duration
boost::date_time::parse_undelimited_time_duration<time_duration>(const
std::string &)' being compiled

with

[

time_duration=time_duration

]

c:\data\boost\release\boost\boost\date_time\posix_time\time_parsers.hpp(35)
: see reference to function template instantiation 'time_type
boost::date_time::parse_iso_time<boost::posix_time::ptime>(const std::string
&,char)' being compiled

with

[

time_type=boost::posix_time::ptime

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(180) : warning C4512:
'boost::detail::lexical_stream<Target,Source>' : assignment operator could
not be generated

with

[

Target=short,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(131) : warning C4127:
conditional expression is constant

c:\data\boost\release\boost\boost\lexical_cast.hpp(127) : while compiling
class-template member function
'boost::detail::lexical_stream<Target,Source>::lexical_stream(void)'

with

[

Target=short,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(186) : see reference to
class template instantiation 'boost::detail::lexical_stream<Target,Source>'
being compiled

with

[

Target=short,

Source=std::string

]

c:\data\boost\release\boost\boost\date_time\time_parsing.hpp(138) : see
reference to function template instantiation 'Target
boost::lexical_cast<short,Type>(Source)' being compiled

with

[

Target=short,

Type=std::string,

Source=std::string

]

c:\data\boost\release\boost\boost\lexical_cast.hpp(133) : warning C4127:
conditional expression is constant

Linking...

Build log was saved at
"file://c:\data\boost\develop\boost\Vs7\Scrap\Debug\BuildLog.htm"

scrap - 0 error(s), 22 warning(s)

---------------------- Done ----------------------

Rebuild All: 1 succeeded, 0 failed, 0 skipped


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk