libprima / prima

PRIMA is a package for solving general nonlinear optimization problems without using derivatives. It provides the reference implementation for Powell's derivative-free optimization methods, i.e., COBYLA, UOBYQA, NEWUOA, BOBYQA, and LINCOA. PRIMA means Reference Implementation for Powell's methods with Modernization and Amelioration, P for Powell.
http://libprima.net
BSD 3-Clause "New" or "Revised" License
304 stars 40 forks source link

Extension of the shared libraries on windows #58

Closed amontoison closed 1 year ago

amontoison commented 1 year ago

When we compile PRIMA with CMake on Windows, the extension of the shared libraries is .a instead of .dll.

zaikunzhang commented 1 year ago

Hi Alexis @amontoison ,

Thank you for pointing this out.

Hi Julien @jschueller ,

Could you have a look at this?

Thanks!

Zaikun

jschueller commented 1 year ago

no, they are actually static libs, shared libs are not supported on windows atm

amontoison commented 1 year ago

@jschueller Can you explain why the shared libs are not supported on Windows for PRIMA?

jschueller commented 1 year ago

on windows symbols must be explicitely exported, which is not done

zaikunzhang commented 1 year ago

Solved by https://github.com/libprima/prima/pull/59