I replied privately by mistake, re-adding the list in CC.

Depends on the build system, I don't know the package.

According to a 10 sec look at
https://raw.githubusercontent.com/lballabio/QuantLib/master/CMakeLists.txt
, it is an option to pass to CMake, which generates ./configure .

In theory, it is an option on the CMakeLists.txt.


Pedro



2016-06-22 14:08 GMT+01:00 Constantinos Makassikis <[email protected]>:
>
> Hi Pedro,
>
> Thanks for your answer. You seem to be right about the linker missing some 
> info.
>
> I have added '-lboost_system-mt -lboost_thread-mt' in the 'Makefile' 
> generated by './configure'.
> By doing that, no compilation error occurs.
>
> Why on earth would that happen? An error in './configure'?
>
>
> Kind Regards,
> --
> Constantinos
>
> On Wed, Jun 22, 2016 at 12:46 PM, Pedro Francisco <[email protected]> 
> wrote:
>>
>> 2016-06-22 13:42 GMT+01:00 Constantinos Makassikis <[email protected]>:
>> >
>> > quantlibtestsuite.o:quantlibtestsuite.cpp:(.text.startup+0x76a): undefined 
>> > reference to `boost::thread::hardware_concurrency()'
>> > quantlibtestsuite.o:quantlibtestsuite.cpp:(.text.startup+0x1d77): 
>> > undefined reference to `boost::thread::start_thread_noexcept()'
>> > quantlibtestsuite.o:quantlibtestsuite.cpp:(.text.startup+0x22f1): 
>> > undefined reference to 
>> > `boost::detail::thread_data_base::~thread_data_base()'
>> > quantlibtestsuite.o:quantlibtestsuite.cpp:(.text.startup+0x4295): 
>> > undefined reference to `boost::system::generic_category()'
>> > quantlibtestsuite.o:quantlibtestsuite.cpp:(.text.startup+0x429a): 
>> > undefined reference to `boost::system::generic_category()'
>> > quantlibtestsuite.o:quantlibtestsuite.cpp:(.text.startup+0x429f): 
>> > undefined reference to `boost::system::system_category()'
>>
>>
>>
>> After a 5 seconds look: the linker is not being told about boost packages.
>>
>> It knows its functions headers (probably the .h files are included),
>> but not the functions contents.
>>
>>
>> Pedro
>
>

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to