File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 1+ For CPPAD, remember to change ` # define CPPAD_C_COMPILER_MSVC_FLAGS 0 ` in ` cppad/include/configure.hpp `
2+
3+ For IPOPT, remember to mask ` IPOPTLIB_EXPORT ` in ` solvers/ipopt/IpoptConfig.h `
Original file line number Diff line number Diff line change 2828/* Define to 1 if Ipopt index type is int64_t */
2929/* #undef IPOPT_INT64 */
3030
31+ #ifdef _MSC_VER
32+
3133/* Library Visibility Attribute */
3234#define IPOPTAMPLINTERFACELIB_EXPORT __declspec(dllimport)
3335
3739/* Library Visibility Attribute */
3840#define SIPOPTLIB_EXPORT __declspec(dllimport)
3941
42+ #else
43+
44+ #define IPOPTAMPLINTERFACELIB_EXPORT
45+ #define IPOPTLIB_EXPORT
46+ #define SIPOPTLIB_EXPORT
47+
48+ #endif
49+
4050/** type corresponding to integers in Fortran
4151 * @deprecated Use ipindex instead.
4252 */
You can’t perform that action at this time.
0 commit comments