c++ - closed source library includes boost distribution -


i'm using closed source library (by activ financial) includes api boost distribution, both boost header files , boost library files.

i use boost in existing codebase, , need use activ existing code.

some points

  • i can encapsulate use of activ entire activ part amounts single class wrote not expose of activ's headers
  • this single header file not use boost anything
  • in way can ensure activ parts of code use activ's boost hpp files, , code uses boost's hpp files

my worry comes in linking. how can ensure activ dependent code links activ's boost, , other code links boost?

i'm using g++ now, doing in vs2008. got working in vs2008 before, have no idea how linked. want try make sure it's done correctly.

is there way without further encapsulating activ part in dynamic library?

edit:

for one, final product executable file. two, statically link boost myself. activ library includes both static , dynamic versions of boost object libraries, , plan statically link it.

i never pass boost objects between code uses different boost versions.

the question is, how link 1 cpp or .o file objects in one library file, , make sure other .o files link identical objects in another library file? possible?

does library dynamically or statically link boost? if statically linked, library expose symbols in dll (declspec export)?

if library statically linked , symbols not exposed, and not pass boost data structures (smart_ptr, threads, etc) , forth, safe use own version of boost library in dll.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -