You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I compile the lib with cmake and msvc, the resulting lib works well when call from a C program, but can not call from a fortran program, seems that it does not export fortran api nlo_*.
The text was updated successfully, but these errors were encountered:
Yes, it looks like you are right — on Windows, you need this __declspec(dllexport) decorator in order to export functions. For the regular C API, we have an NLOPT_EXTERN macro that adds this decorator as needed, but we aren't utilizing this in the Fortran API definitions.
stevengj
changed the title
Not export fortran api
Fortran API is not exported on Windows
Mar 15, 2019
I compile the lib with cmake and msvc, the resulting lib works well when call from a C program, but can not call from a fortran program, seems that it does not export fortran api
nlo_*
.The text was updated successfully, but these errors were encountered: