[gecode-users] Boost and ABI

David Rijsman David.Rijsman at quintiq.com
Wed Mar 26 15:16:34 CET 2014


Hi Christian,

thanks, yes I will try 1 (and 3) and see if it works and let you know,







David J. Rijsman
R&D Optimization Lead
Quintiq
T +31 73 691 0739
M +31 6 2127 6829
Skype: quintiq.david
www.quintiq.com


>>> 
From: 	"Christian Schulte" <cschulte at kth.se>
To:	"'David Rijsman'" <David.Rijsman at quintiq.com>, <users at gecode.org>
Date: 	26-3-2014 15:13
Subject: 	RE: [gecode-users] Boost and ABI

Hi David,

That's a strange error indeed, never seen it myself when compiling with MSVC
2010. This appears to come when combining the Gecode Float module and also
including boost once again.

Gecode does expose some boost data types (the floating point intervals used
in the Float model are based on the boost interval type).

Now, I have three answers for you ;-)
 1. as I hand-extracted (the boost scripts actually did not work for me) the
relevant parts from boost some files could have been skipped...
 2. if I understand the macro correctly it should work to define
BOOST_DISABLE_ABI_HEADERS provided you build Gecode yourself. 
 3. you can disable the Float module by passing -disable-float-vars to
configure, then Gecode does not use boost.

Could you do me a favor and try 1.? I have attached a patch that adds the
ABI files. If it works I'll commit them to the trunk.

Thanks and cheers
Christian
 
--
Christian Schulte, Professor of Computer Science, KTH,
www.ict.kth.se/~cschulte/ 


-----Original Message-----
From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf
Of David Rijsman
Sent: Wednesday, March 26, 2014 2:42 PM
To: users at gecode.org 
Subject: [gecode-users] Boost and ABI

Dear All,

I am upgrading to Gecode version 4.2.1 (from verion 3.7.2) compiling on
Visual 2010 and get an error that the compiler can not include:

gecode-4.2.1\include\gecode\third-party\boost\config\abi\msvc_prefix.hpp

I can get rid of the error by defining the preprocessor definition
BOOST_DISABLE_ABI_HEADERS which is only safe if Gecode does not expose any
of the boost data types (I am linking Gecode into a project that already is
linked/using boost). 

Does Gecode indeed want me to define BOOST_DISABLE_ABI_HEADERS or am I
missing something (other than the header file)?

thanks,




David J. Rijsman
R&D Optimization Lead
Quintiq
T +31 73 691 0739
M +31 6 2127 6829
Skype: quintiq.david
www.quintiq.com 



_______________________________________________
Gecode users mailing list
users at gecode.org 
https://www.gecode.org/mailman/listinfo/gecode-users




More information about the users mailing list