Boost-users
Threads by month
- ----- 2024 -----
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2005 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2004 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2003 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2002 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2001 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2000 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1999 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1998 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 1997 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
May 2008
- 259 participants
- 293 discussions
Hello,
trying out Pete Becker's "c++ std lib ext" exercises,
ex1 p155
#include <iostream>
#include <typeinfo>
#include <boost/utility/result_of.hpp>
typedef float (*floatfct)(float);
int main(int argc, char* argv[])
{
typedef typename boost::result_of<floatfct(float, float)>::type resultype;
std::cout<< typeid(resultype).name() << std::endl;
}
should fail, because result_of is instantiated with a callable type with 2 float args,
while it's been defined as taking 1 float arg only?
with intel10.1-MSVC8-boost1.35, it links.
rds,
2
1
01 May '08
Hi,
I've a Dev-Cpp, mingw, Windows XP development environment.
I'm trying to develop an application based on Regex but I'm not able to run
even the simple example from
"Getting Started" section of Boost documentation or the "Credit Card
Numbers" example from Regex.
I've built the library through different ways (trying just to build the
regex library from John's homepage or
building the whole Boost library through bjam). The building process was
always OK and I'm pretty sure
that I'm correctly linking the files in Dev-Cpp (I also used the path
described at http://wagjo.com/index.php?id=27)
However, I always get similar result: a lot of compiler messages saying that
I have "multiple definitions of something".
Does anyone in this list could help me?
Here is the compiler log from one of the many tentatives that I've made
(sorry about huge text):
Compiler: OpenCV+Regex
Building Makefile: "C:\Documents and Settings\pdcosta\Desktop\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\pdcosta\Desktop\Makefile.win" all
g++.exe -D__DEBUG__ -c "../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.cpp" -o
"../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.o"
-I"C:/Dev-Cpp/lib/gcc/mingw32/3.4.2/include"
-I"C:/Dev-Cpp/include/c++/3.4.2/backward"
-I"C:/Dev-Cpp/include/c++/3.4.2/mingw32" -I"C:/Dev-Cpp/include/c++/3.4.2"
-I"C:/Dev-Cpp/include" -I"C:/Arquivos de programas/regex" -L"C:\Arquivos
de Programas\OpenCV\lib" -lcxcore -lcv -lcvaux -lhighgui -lml -lcvcam -g3
-mwindows
In file included from C:/Arquivos de programas/regex/boost/config.hpp:35,
from C:/Arquivos de
programas/regex/boost/regex/config.hpp:94,
from C:/Arquivos de
programas/regex/boost/regex/v3/cregex.hpp:28,
from C:/Arquivos de programas/regex/boost/cregex.hpp:27,
from C:/Arquivos de
programas/regex/boost/regex/v3/regex.hpp:32,
from C:/Arquivos de programas/regex/boost/regex.hpp:31,
from ../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.cpp:24:
C:/Arquivos de programas/regex/boost/config/compiler/gcc.hpp:66:7: warning:
#warning "Unknown compiler version - please run the configure tests and
report the results"
g++.exe: -lcxcore: linker input file unused because linking not done
g++.exe: -lcv: linker input file unused because linking not done
g++.exe: -lcvaux: linker input file unused because linking not done
g++.exe: -lhighgui: linker input file unused because linking not done
g++.exe: -lml: linker input file unused because linking not done
g++.exe: -lcvcam: linker input file unused because linking not done
g++.exe -D__DEBUG__ "../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.o" -o
"Project1.exe" -L"C:/Dev-Cpp/lib" -L"C:/Arquivos de programas/regex"
-L"C:/Arquivos de programas/regex/libs/regex/build/gcc" "../../../Arquivos
de programas/regex/libs/regex/build/gcc/libboost_regex.a" -g3 -mwindows
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.data$_ZTISt13runtime_error[typeinfo
for std::runtime_error]+0x0):instances.cpp: multiple definition of `typeinfo
for std::runtime_error'
../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.o(.rdata$_ZTISt13runtime_error[typeinfo
for std::runtime_error]+0x0):C:/Arquivos de
programas/regex/boost/regex/v3/regex.hpp: first defined here
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZTSSt13runtime_error[typeinfo
name for std::runtime_error]+0x0):instances.cpp: multiple definition of
`typeinfo name for std::runtime_error'
../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.o(.rdata$_ZTSSt13runtime_error[typeinfo
name for std::runtime_error]+0x0):C:/Arquivos de
programas/regex/boost/regex/v3/regex.hpp: first defined here
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.data$_ZTISt9exception[typeinfo
for std::exception]+0x0):instances.cpp: multiple definition of `typeinfo for
std::exception'
../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.o(.rdata$_ZTISt9exception[typeinfo
for std::exception]+0x0):C:/Arquivos de
programas/regex/boost/regex/v3/regex.hpp: first defined here
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZTSSt9exception[typeinfo
name for std::exception]+0x0):instances.cpp: multiple definition of
`typeinfo name for std::exception'
../../../Arquivos de
programas/regex/libs/regex/example/snippets/credit_card_example.o(.rdata$_ZTSSt9exception[typeinfo
name for std::exception]+0x0):C:/Arquivos de
programas/regex/boost/regex/v3/regex.hpp: first defined here
C:/Dev-Cpp/lib/libstdc++.a(stdexcept.o)(.rdata$_ZTVSt13runtime_error[vtable
for std::runtime_error]+0x0):stdexcept.cc: multiple definition of `vtable
for std::runtime_error'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.data$_ZTVSt13runtime_error[vtable
for std::runtime_error]+0x0):instances.cpp: first defined here
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text+0x173):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text+0x17a):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text+0x529):c_regex_traits.cpp:
undefined reference to `std::__default_alloc_template<true,
0>::allocate(unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text+0x696):c_regex_traits.cpp:
undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text+0x109a):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text+0x10b3):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZNSt10_List_baseIN42_GLOBAL__N_.._src_c_regex_traits.cppeur9ib14collate_name_tESaIS1_EE5clearEv[std::_List_base<(anonymous
namespace)::collate_name_t, std::allocator<(anonymous
namespace)::collate_name_t> >::clear()]+0x47):c_regex_traits.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZN5boost9re_detail16find_sort_syntaxINS_14c_regex_traitsIcEEcEEjPKT_PT0_[unsigned
int boost::re_detail::find_sort_syntax<boost::c_regex_traits<char>,
char>(boost::c_regex_traits<char> const*, char*)]+0x6b):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZN5boost9re_detail16find_sort_syntaxINS_14c_regex_traitsIcEEcEEjPKT_PT0_[unsigned
int boost::re_detail::find_sort_syntax<boost::c_regex_traits<char>,
char>(boost::c_regex_traits<char> const*, char*)]+0x7b):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZN5boost9re_detail16find_sort_syntaxINS_14c_regex_traitsIcEEcEEjPKT_PT0_[unsigned
int boost::re_detail::find_sort_syntax<boost::c_regex_traits<char>,
char>(boost::c_regex_traits<char> const*, char*)]+0x198):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZN5boost9re_detail16find_sort_syntaxINS_14c_regex_traitsIcEEcEEjPKT_PT0_[unsigned
int boost::re_detail::find_sort_syntax<boost::c_regex_traits<char>,
char>(boost::c_regex_traits<char> const*, char*)]+0x1a8):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZN5boost9re_detail16find_sort_syntaxINS_14c_regex_traitsIcEEcEEjPKT_PT0_[unsigned
int boost::re_detail::find_sort_syntax<boost::c_regex_traits<char>,
char>(boost::c_regex_traits<char> const*, char*)]+0x1de):c_regex_traits.cpp:
undefined reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZN5boost9re_detail16find_sort_syntaxINS_14c_regex_traitsIcEEcEEjPKT_PT0_[unsigned
int boost::re_detail::find_sort_syntax<boost::c_regex_traits<char>,
char>(boost::c_regex_traits<char> const*, char*)]+0x1ee):c_regex_traits.cpp:
more undefined references to `std::string::_S_empty_rep_storage' follow
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag[char*
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_S_construct<char const*>(char const*, char const*, std::allocator<char>
const&, std::forward_iterator_tag)]+0x27):c_regex_traits.cpp: undefined
reference to `std::string::_Rep::_S_create(unsigned int,
std::allocator<char> const&)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag[char*
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_S_construct<char const*>(char const*, char const*, std::allocator<char>
const&, std::forward_iterator_tag)]+0x6f):c_regex_traits.cpp: undefined
reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20forward_iterator_tag[char*
std::basic_string<char, std::char_traits<char>, std::allocator<char>
>::_S_construct<char const*>(char const*, char const*, std::allocator<char>
const&, std::forward_iterator_tag)]+0x74):c_regex_traits.cpp: undefined
reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZNSt14__simple_allocISt10_List_nodeIN42_GLOBAL__N_.._src_c_regex_traits.cppeur9ib14collate_name_tEESt24__default_alloc_templateILb1ELi0EEE8allocateEj[std::__simple_alloc<std::_List_node<(anonymous
namespace)::collate_name_t>, std::__default_alloc_template<true, 0>
>::allocate(unsigned int)]+0x1a):c_regex_traits.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::allocate(unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(c_regex_traits.o)(.text$_ZNSt14__simple_allocISt10_List_nodeIN42_GLOBAL__N_.._src_c_regex_traits.cppeur9ib14collate_name_tEESt24__default_alloc_templateILb1ELi0EEE10deallocateEPS3_j[std::__simple_alloc<std::_List_node<(anonymous
namespace)::collate_name_t>, std::__default_alloc_template<true, 0>
>::deallocate(std::_List_node<(anonymous namespace)::collate_name_t>*,
unsigned int)]+0x18):c_regex_traits.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEEC2EPKcjRKS3_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::reg_expression(char
const*, unsigned int, std::allocator<char> const&)]+0xf6):instances.cpp:
undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEEC1EPKcjRKS3_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::reg_expression(char
const*, unsigned int, std::allocator<char> const&)]+0xf6):instances.cpp:
undefined reference to `std::__default_alloc_template<true,
0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEEC2EPKcjjRKS3_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::reg_expression(char
const*, unsigned int, unsigned int, std::allocator<char>
const&)]+0xe6):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEEC1EPKcjjRKS3_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::reg_expression(char
const*, unsigned int, unsigned int, std::allocator<char>
const&)]+0xe6):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEEC2ERKS4_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char>
>::reg_expression(boost::reg_expression<char, boost::regex_traits<char>,
std::allocator<char> > const&)]+0x133):instances.cpp: more undefined
references to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)' follow
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE11fixup_applyEPNS_9re_detail14re_syntax_baseEj[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char>
>::fixup_apply(boost::re_detail::re_syntax_base*, unsigned
int)]+0x182):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::allocate(unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE11fixup_applyEPNS_9re_detail14re_syntax_baseEj[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char>
>::fixup_apply(boost::re_detail::re_syntax_base*, unsigned
int)]+0x1b8):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE11compile_setERPKcS6_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::compile_set(char const*&,
char const*)]+0x184):instances.cpp: undefined reference to
`std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE11compile_setERPKcS6_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::compile_set(char const*&,
char const*)]+0x18e):instances.cpp: undefined reference to
`std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE11compile_setERPKcS6_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::compile_set(char const*&,
char const*)]+0xb8a):instances.cpp: undefined reference to
`std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE11compile_setERPKcS6_[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >::compile_set(char const*&,
char const*)]+0xba4):instances.cpp: undefined reference to
`std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE15compile_set_auxERNS_9re_detail6jstackISsS3_EES8_RNS6_ImS3_EES8_bRKNS5_12_narrow_typeE[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char>
>::compile_set_aux(boost::re_detail::jstack<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::allocator<char> >&,
boost::re_detail::jstack<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<char> >&,
boost::re_detail::jstack<unsigned long, std::allocator<char> >&,
boost::re_detail::jstack<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<char> >&, bool,
boost::re_detail::_narrow_type const&)]+0x18f):instances.cpp: undefined
reference to `std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost14reg_expressionIcNS_12regex_traitsIcEESaIcEE15compile_set_auxERNS_9re_detail6jstackISsS3_EES8_RNS6_ImS3_EES8_bRKNS5_12_narrow_typeE[boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char>
>::compile_set_aux(boost::re_detail::jstack<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::allocator<char> >&,
boost::re_detail::jstack<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<char> >&,
boost::re_detail::jstack<unsigned long, std::allocator<char> >&,
boost::re_detail::jstack<std::basic_string<char, std::char_traits<char>,
std::allocator<char> >, std::allocator<char> >&, bool,
boost::re_detail::_narrow_type const&)]+0x196):instances.cpp: more undefined
references to `std::string::_S_empty_rep_storage' follow
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEEC2ERKS4_[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::match_results_base(std::allocator<char>
const&)]+0x42):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::allocate(unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEEC1ERKS4_[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::match_results_base(std::allocator<char>
const&)]+0x46):instances.cpp: undefined reference to
`std::allocator<char>::allocate(unsigned int, void const*)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEE6m_freeEv[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::m_free()]+0x84):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEE8set_sizeEj[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::set_size(unsigned int)]+0x61):instances.cpp:
undefined reference to `std::allocator<char>::allocate(unsigned int, void
const*)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEE8set_sizeEj[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::set_size(unsigned
int)]+0x1a8):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEE8set_sizeEjS3_S3_[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::set_size(unsigned int, char const*, char
const*)]+0x61):instances.cpp: undefined reference to
`std::allocator<char>::allocate(unsigned int, void const*)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEE8set_sizeEjS3_S3_[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::set_size(unsigned int, char const*, char
const*)]+0x21a):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail18match_results_baseIPKcSaIcEE3cowEv[boost::re_detail::match_results_base<char
const*, std::allocator<char> >::cow()]+0x34):instances.cpp: undefined
reference to `std::allocator<char>::allocate(unsigned int, void const*)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail11raw_storageISaIcEEC1ERKS2_[boost::re_detail::raw_storage<std::allocator<char>
>::raw_storage(std::allocator<char> const&)]+0x42):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::allocate(unsigned
int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail8kmp_freeIcSaIcEEEvPNS0_8kmp_infoIT_EERKT0_[void
boost::re_detail::kmp_free<char, std::allocator<char>
>(boost::re_detail::kmp_info<char>*, std::allocator<char>
const&)]+0x44):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail6jstackIjSaIcEED1Ev[boost::re_detail::jstack<unsigned
int, std::allocator<char> >::~jstack()]+0x6a):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail6jstackIjSaIcEED1Ev[boost::re_detail::jstack<unsigned
int, std::allocator<char> >::~jstack()]+0x97):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail11kmp_compileIPccNS0_14kmp_translatorINS_12regex_traitsIcEEEESaIcEEEPNS0_8kmp_infoIT0_EET_SC_S9_T1_RKT2_[boost::re_detail::kmp_info<char>*
boost::re_detail::kmp_compile<char*, char,
boost::re_detail::kmp_translator<boost::regex_traits<char> >,
std::allocator<char> >(char*, char*, char,
boost::re_detail::kmp_translator<boost::regex_traits<char> >,
std::allocator<char> const&)]+0x69):instances.cpp: undefined reference to
`std::allocator<char>::allocate(unsigned int, void const*)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail11raw_storageISaIcEE6resizeEj[boost::re_detail::raw_storage<std::allocator<char>
>::resize(unsigned int)]+0x56):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail16re_is_set_memberIPKccNS_12regex_traitsIcEESaIcEEET_S7_S7_PKNS0_11re_set_longERKNS_14reg_expressionIT0_T1_T2_EE[char
const* boost::re_detail::re_is_set_member<char const*, char,
boost::regex_traits<char>, std::allocator<char> >(char const*, char const*,
boost::re_detail::re_set_long const*, boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >
const&)]+0x13c):instances.cpp: undefined reference to
`std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail16re_is_set_memberIPKccNS_12regex_traitsIcEESaIcEEET_S7_S7_PKNS0_11re_set_longERKNS_14reg_expressionIT0_T1_T2_EE[char
const* boost::re_detail::re_is_set_member<char const*, char,
boost::regex_traits<char>, std::allocator<char> >(char const*, char const*,
boost::re_detail::re_set_long const*, boost::reg_expression<char,
boost::regex_traits<char>, std::allocator<char> >
const&)]+0x146):instances.cpp: undefined reference to
`std::string::_S_empty_rep_storage'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail6jstackISsSaIcEED1Ev[boost::re_detail::jstack<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::allocator<char>
>::~jstack()]+0xf1):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail6jstackISsSaIcEED1Ev[boost::re_detail::jstack<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::allocator<char>
>::~jstack()]+0x141):instances.cpp: undefined reference to
`std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail6jstackImSaIcEED1Ev[boost::re_detail::jstack<unsigned
long, std::allocator<char> >::~jstack()]+0x6a):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail6jstackImSaIcEED1Ev[boost::re_detail::jstack<unsigned
long, std::allocator<char> >::~jstack()]+0x97):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*,
unsigned int)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZN5boost9re_detail11kmp_compileIPKccNS0_14kmp_translatorINS_12regex_traitsIcEEEESaIcEEEPNS0_8kmp_infoIT0_EET_SD_SA_T1_RKT2_[boost::re_detail::kmp_info<char>*
boost::re_detail::kmp_compile<char const*, char,
boost::re_detail::kmp_translator<boost::regex_traits<char> >,
std::allocator<char> >(char const*, char const*, char,
boost::re_detail::kmp_translator<boost::regex_traits<char> >,
std::allocator<char> const&)]+0x69):instances.cpp: undefined reference to
`std::allocator<char>::allocate(unsigned int, void const*)'
../../../Arquivos de
programas/regex/libs/regex/build/gcc/libboost_regex.a(instances.o)(.text$_ZNSaIhE8allocateEjPKv[std::allocator<unsigned
char>::allocate(unsigned int, void const*)]+0x17):instances.cpp: undefined
reference to `std::__default_alloc_template<true, 0>::allocate(unsigned
int)'
collect2: ld returned 1 exit status
make.exe: *** [Project1.exe] Error 1
Execution terminated
2
1
------ Build started: Project: boost_memory_mapped_io, Configuration: Release x64 ------
Linking...
main.obj : error LNK2001: unresolved external symbol "class boost::filesystem::file_status __cdecl boost::filesystem::detail::status_api(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class boost::system::error_code &)" (?status_api@detail@filesystem@boost@@YA?AVfile_status@23@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@AEAVerror_code@system@3@@Z)
main.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_system_category(void)" (?get_system_category@system@boost@@YAAEBVerror_category@12@XZ)
main.obj : error LNK2001: unresolved external symbol "class boost::system::error_category const & __cdecl boost::system::get_posix_category(void)" (?get_posix_category@system@boost@@YAAEBVerror_category@12@XZ)
main.obj : error LNK2001: unresolved external symbol "struct std::pair<class boost::system::error_code,unsigned __int64> __cdecl boost::filesystem::detail::file_size_api(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?file_size_api@detail@filesystem@boost@@YA?AU?$pair@Verror_code@system@boost@@_K@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@@Z)
C:\DocumentsAndSettings\pfoelsch\MyDocuments\boost_memory_mapped_io\x64\Release\boost_memory_mapped_io.exe : fatal error LNK1120: 4 unresolved externals
Build log was saved at "file://c:\DocumentsAndSettings\pfoelsch\MyDocuments\boost_memory_mapped_io\boost_memory_mapped_io\x64\Release\BuildLog.htm"
boost_memory_mapped_io - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
see attached main.cpp
I link with
boost_system-vc80-mt-1_35.lib
boost_filesystem-vc80-mt-1_35.lib
and other boost libraries which are referenced directly.
I work on 64bit XP compiling for 64bit.
1
0