Opened 2 years ago

Closed 3 months ago

#12 closed defect (migrated)

static compilation problem under Windows 32 bits

Reported by: ycollet Owned by: somebody
Priority: highest Milestone:
Component: component1 Version:
Severity: blocker Keywords:
Cc:

Description

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.

Change History (1)

comment:1 Changed 3 months ago by stefan

  • Resolution set to migrated
  • Status changed from new to closed

This ticket has been migrated to GitHub and will be resolved there: https://github.com/coin-or/CoinMP/issues/12

Note: See TracTickets for help on using tickets.