scipopt / soplex

Sequential object-oriented simPlex
Other
59 stars 18 forks source link

Why libsoplex + libsoplex-pic? #39

Closed jacobsvante closed 4 months ago

jacobsvante commented 4 months ago

I'm wondering why there's two files, libsoplex.a and libsoplex-pic.a?

Shouldn't PIC be specified as an option to cmake / the compiler? Or am I misunderstanding something?

leoneifler commented 4 months ago

SoPlex creates both by default, and the -pic one is created, since it can be linked into shared libraries.

jacobsvante commented 4 months ago

Okay, thanks.

I can't find any documentation describing what the differences are between the library files created. What's the difference between libsoplex.a and libsoplexshared.so more than that one is static and one is dynamic?

leoneifler commented 4 months ago

libsoplexshared is the library for the C-interface of SoPlex (not c++). For your goal of a completely static SCIP you will not need that one (it is used for the soplex python+julia interfaces)

jacobsvante commented 4 months ago

Thanks for the clarification 👍