CoinMP icon indicating copy to clipboard operation
CoinMP copied to clipboard

static compilation problem under Windows 32 bits

Open svigerske opened this issue 6 years ago • 0 comments

Issue created by migration from Trac.

Original creator: @ycollet

Original creation time: 2017-05-09 11:57:58

Assignee: somebody

Version:

When I try to compile CoinMP on Windows in 32 bits, I am not able to link my example with the library. The linker complains about missing sympbols. I tracked down the problem. It comes from CoinMP.h:

#if defined(_MSC_VER) && !defined(HAVE_CONFIG_H)

# define SOLVCALL   __stdcall
# if defined(SOLVER_EXPORT) && !defined(_WIN64)
#  define SOLVAPI  __declspec(dllexport)
# endif
# if defined(SOLVER_IMPORT)
#  define SOLVAPI __declspec(dllimport)
# endif

If I remove "# define SOLVCALL __stdcall" and " && !defined(_WIN64)" everything is working fine.

svigerske avatar Mar 04 '19 02:03 svigerske