[CoinMP-tickets] [CoinMP Library] #12: static compilation problem under Windows 32 bits
CoinMP Library
coin-trac at coin-or.org
Tue May 9 07:57:58 EDT 2017
#12: static compilation problem under Windows 32 bits
------------------------+----------------------
Reporter: ycollet | Owner: somebody
Type: defect | Status: new
Priority: highest | Milestone:
Component: component1 | Version:
Severity: blocker | Keywords:
------------------------+----------------------
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.
--
Ticket URL: <https://projects.coin-or.org/CoinMP/ticket/12>
CoinMP Library <http://projects.coin-or.org/CoinMP>
A lightweight API for some COIN-OR tools
More information about the CoinMP-tickets
mailing list