Jostein, I truly appreciate the help and suggestions you are
providing.  I've tried the latest acprep command you gave but I still
am getting errors at the link stage.  I tried it with --boost pointing
to the locally compiled boost root path and I also ommitted --boost so
it would pick up the system-installed version.  Same result:

Linking CXX executable ../ledger
CMakeFiles/ledger.dir/main.cc.o: In function `bool
boost::regex_search<char const*, char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > >(char const*, char const*,
boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > > const&,
boost::regex_constants::_match_flags)':
/usr/contrib/include/boost/regex/v4/regex_search.hpp:145: undefined
reference to `boost::re_detail::perl_matcher<char const*,
std::allocator<boost::sub_match<char const*> >,
boost::regex_traits<char, boost::cpp_regex_traits<char> > >::find()'
CMakeFiles/ledger.dir/main.cc.o: In function
`boost::re_detail::perl_matcher<char const*,
std::allocator<boost::sub_match<char const*> >,
boost::regex_traits<char, boost::cpp_regex_traits<char> >
>::perl_matcher(char const*, char const*, boost::match_results<char
const*, std::allocator<boost::sub_match<char const*> > >&,
boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > > const&,
boost::regex_constants::_match_flags, char const*)':
/usr/contrib/include/boost/regex/v4/perl_matcher.hpp:374: undefined
reference to `boost::re_detail::perl_matcher<char const*,
std::allocator<boost::sub_match<char const*> >,
boost::regex_traits<char, boost::cpp_regex_traits<char> >
>::construct_init(boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > > const&,
boost::regex_constants::_match_flags)'
../libledger.so.3: undefined reference to
`boost::iostreams::file_descriptor::seek(long, std::_Ios_Seekdir)'
../libledger.so.3: undefined reference to
`boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char
const*, std::string>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char
const*, std::string> > >, boost::regex_traits<char,
boost::cpp_regex_traits<char> > >::match()'
../libledger.so.3: undefined reference to
`boost::python::objects::function_object(boost::python::objects::py_function
const&, std::pair<boost::python::detail::keyword const*,
boost::python::detail::keyword const*> const&)'
../libledger.so.3: undefined reference to
`boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char
const*, std::string>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char
const*, std::string> > >, boost::regex_traits<char,
boost::cpp_regex_traits<char> >
>::construct_init(boost::basic_regex<char, boost::regex_traits<char,
boost::cpp_regex_traits<char> > > const&,
boost::regex_constants::_match_flags)'
../libledger.so.3: undefined reference to
`boost::filesystem::path_traits::dispatch(boost::filesystem::directory_entry
const&, std::string&, std::codecvt<wchar_t, char, __mbstate_t>
const&)'
../libledger.so.3: undefined reference to
`boost::python::objects::register_dynamic_id_aux(boost::python::type_info,
std::pair<void*, boost::python::type_info> (*)(void*))'
../libledger.so.3: undefined reference to
`boost::re_detail::perl_matcher<__gnu_cxx::__normal_iterator<char
const*, std::string>,
std::allocator<boost::sub_match<__gnu_cxx::__normal_iterator<char
const*, std::string> > >, boost::regex_traits<char,
boost::cpp_regex_traits<char> > >::find()'
collect2: error: ld returned 1 exit status
*** Error code 1

On Mon, Jun 30, 2014 at 3:29 AM, Jostein Berntsen <[email protected]> wrote:
>
>
> On Monday, June 30, 2014 7:26:46 AM UTC+2, Chris Leyon wrote:
>>
>> Update: I've given up on clang.  I never did figure out how to tell
>> cmake and/or acprep to pass a new option like "-stdlib=..." to the
>> compilation phase.  I assume it's possible somehow.  So I ended up
>> grabbing the compilation commands cmake produced and copying them into
>> a script and I manually added the option you suggested and recompiled.
>> Then it complained about not finding several standard include library
>> files.
>>
>> So I am now trying g++.  Again, due to cmake
>>
>
> Can you try to compile with therse options for acprep?
>
> ./acprep --debug --python --compiler="g++-4.8.4 -lboost_regex
> -lboost_iostreams" --boost=/your-boost-root-path
>
> Jostein
>
>
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Ledger" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to